webform TextBox以一条横线显示 ---兼容各主流瀏覽器

简介:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefaultForm1.aspx.cs" Inherits="Rewriter.DefaultForm1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt
 
<%@ 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>

目录
相关文章
|
.NET C# 容器
WPF自定义LED风格数字显示控件
原文:WPF自定义LED风格数字显示控件 版权声明:本文为博主原创文章,转载请注明作者和出处 https://blog.csdn.net/ZZZWWWPPP11199988899/article/details/52895167 ...
1658 0
|
C# 虚拟化 索引
【WPF】UI虚拟化之------自定义VirtualizingWrapPanel
原文:【WPF】UI虚拟化之------自定义VirtualizingWrapPanel 前言 前几天QA报了一个关于OOM的bug,在排查的过程中发现,ListBox控件中被塞入了过多的Item,而ListBox又定义了两种样式的ItemsPanelTemplate。
2016 0
|
6月前
|
开发者
SAP UI5 应用开发教程之四十四 - Label 和 Input 控件文本没有水平对齐的原因分析和解决方案
SAP UI5 应用开发教程之四十四 - Label 和 Input 控件文本没有水平对齐的原因分析和解决方案
24 0
案例分享:Qt九宫格图片资源浏览器(支持window、linux、兼容各国产系统,支持子文件夹,多选,全选,图片预览,行数与列数设置等)
案例分享:Qt九宫格图片资源浏览器(支持window、linux、兼容各国产系统,支持子文件夹,多选,全选,图片预览,行数与列数设置等)
案例分享:Qt九宫格图片资源浏览器(支持window、linux、兼容各国产系统,支持子文件夹,多选,全选,图片预览,行数与列数设置等)
|
自然语言处理 计算机视觉
UWP Xaml设计器中输入特殊字符
原文:UWP Xaml设计器中输入特殊字符     字符 语法 说明 &gt; 大于号。 & &amp; “and”符。
842 0