zoukankan      html  css  js  c++  java
  • webform TextBox以一条横线显示 兼容各主流瀏覽器 .

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefaultForm1.aspx.cs" Inherits="Rewriter.DefaultForm1" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>webform TextBox以一条横线显示 ---兼容各主流瀏覽器</title> 
        <style type="text/css">
        /*這是以CLASS名設置樣式  塗聚文注釋*/
        .CurledLineMiddle{
        border-right: medium none; border-top: medium none; font-size: 9pt; border-left: medium none; border-bottom: #a0a0a0 1px solid;background-color: transparent; text-align: center
        }
      /**/
      
     /*這是以ID名設置樣式  */ 
       /* 
       #txtUnitName{
        border-right: medium none; border-top: medium none; font-size: 9pt; border-left: medium none; border-bottom: #a0a0a0 1px solid;background-color: transparent; text-align: center
        }*/
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:Label ID="Label1" runat="server" Text="姓名:"></asp:Label>
            <asp:TextBox ID="txtUnitName" runat="server" CssClass="CurledLineMiddle"></asp:TextBox></div>
        </form>
    </body>
    </html>
    
    哲学管理(学)人生, 文学艺术生活, 自动(计算机学)物理(学)工作, 生物(学)化学逆境, 历史(学)测绘(学)时间, 经济(学)数学金钱(理财), 心理(学)医学情绪, 诗词美容情感, 美学建筑(学)家园, 解构建构(分析)整合学习, 智商情商(IQ、EQ)运筹(学)成功.---Geovin Du(涂聚文)
  • 相关阅读:
    find the most comfortable road
    Rank of Tetris
    Segment set
    Codeforces Round #380 (Div. 2)D. Sea Battle
    A Bug's Life
    Is It A Tree?
    N皇后问题
    符号三角形
    2016 ICPC总结
    Sudoku Killer
  • 原文地址:https://www.cnblogs.com/geovindu/p/2409487.html
Copyright © 2011-2022 走看看