1

我有 asp.net 文本框和下拉列表。试图制作平面模型或花式风格。请帮我弄清楚一些例子和样本

.RegText
{
    font-family: Tahoma, Arial, Helvetica;
    font-size: 11.5pt;
    width:250px;
    height:30px;
    margin-top:5px;
    margin-bottom:5px;  

}
.RegDropdown
{
    font-family: Tahoma, Arial, Helvetica;
    font-size: 11.5pt;
    height:35px;
    width:250px;
    margin-top:5px;
    margin-bottom:5px;  
}
<td>
  <asp:DropDownList ID="ddlCostcenter" runat="server" CssClass="RegDropdown" 
       AutoPostBack="true" InitialValue="Select One"></asp:DropDownList>
</td>
</tr>
    <tr>
        <td >
             <asp:Label ID="lbInitiative" runat="server" CssClass="RegLabel" Text="Initiative # :"></asp:Label>
        </td>
        <td>
           <asp:TextBox ID="txtInitiative" runat="server" CssClass="RegText" ></asp:TextBox>
           </td>

在此处输入图像描述

4

3 回答 3

2

@James123,我在文本框上使用这种风格,它可以帮助你:

input[type=text], input[type=password], textarea
{
  outline:none;
  border:solid 1px #BBB;
  padding:3px;
  font-size:20px;
}

input[type=text]:focus, input[type=password]:focus, textarea:focus
{
  border:solid 1px #888;
}

这是一个关于花哨的文本和文本框的很好提示的页面:http ://webdesign.about.com/od/css/a/aa051607.htm

于 2013-02-14T17:57:33.640 回答
1

只需border: 0;用于input type=textselect

input[type=text], select {
   border: 0;
}

演示

于 2013-02-14T17:04:18.003 回答
1

只需添加更多信息……您可能想使用 outline:0; 以及删除那些“额外的边框”(通常在谷歌浏览器中为黄色)

于 2013-02-14T17:47:01.587 回答