如何在css中创建asp.net文本框和下拉平面样式?
我有asp.net文本框和下拉列表。试图制作平面模型或花式风格。请用一些例子和例子来帮助我弄清楚如何在css中创建asp.net文本框和下拉平面样式?,asp.net,css,Asp.net,Css,我有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, Ar
.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>
.RegText
{
字体系列:Tahoma、Arial、Helvetica;
字号:11.5pt;
宽度:250px;
高度:30px;
边缘顶部:5px;
边缘底部:5px;
}
.regdown
{
字体系列:Tahoma、Arial、Helvetica;
字号:11.5pt;
高度:35px;
宽度:250px;
边缘顶部:5px;
边缘底部:5px;
}
只需使用
边框:0代码>对于输入类型=文本和选择
input[type=text], select {
border: 0;
}
只需使用边框:0代码>对于输入类型=文本和选择
input[type=text], select {
border: 0;
}
只需添加更多信息。。。您可能希望使用大纲:0;以及删除那些“额外的边框”(在谷歌浏览器中通常为黄色)只需添加更多信息。。。您可能希望使用大纲:0;除了删除那些“额外边框”(在谷歌浏览器中通常为黄色)@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;
}
这是一个关于花式文本和文本框的提示页面:@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;
}
这里有一个关于花式文本和文本框的提示页面:textbox很好,但下拉箭头不是平坦的。你们能和我们分享一些花式风格的网站吗css@James123检查这个文本框很好,但下拉箭头不是平面的。你们能和我分享一些别致风格的网站吗css@James123看看这个