怎么在GridView里加虚线
如何在GridView里加虚线
问题:如何在GridView里加虚线;
转自:http://bbs.suda123.com/Archiver/webbiancheng/thread-230875-1.html
在css中将solid改成dashed即可!!
cs:
<style type="text/css">
.bottomLine
{
border-bottom: #000000 1px dashed;
border-left-style: none;
border-right-style: none;
}
</style>
例如:
cs:
<style type="text/css">
.bottomLine
{
border-bottom: #000000 1px solid;
border-left-style: none;
border-right-style: none;
}
</style>
html:
......
<asp:BoundField DataField="EmployeeID" HeaderText="ID" ReadOnly="True" >
<ItemStyle CssClass="bottomLine" />
</asp:BoundField>