如何给DropDownList控件添加边框

80酷酷网    80kuku.com

  控件

  在控件前添加如下蓝色代码(这里添加的是灰色边框):

<span gray 1px solid; border-top: gray 1px solid;
                border-left: gray 1px solid; border-bottom: gray 1px solid;">

<asp:DropDownList ID="ddlSearch" runat="server">
                    <asp:ListItem Value="title">标题</asp:ListItem>
                    <asp:ListItem Value="content">内容</asp:ListItem>
                    <asp:ListItem Value="author">作者</asp:ListItem>
                </asp:DropDownList>

</span>

分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: