Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在css中创建asp.net文本框和下拉平面样式?_Asp.net_Css - Fatal编程技术网

如何在css中创建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

我有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>
.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看看这个