读书人

怎么在GridView里加虚线

发布时间: 2012-10-29 10:03:53 作者: rapoo

如何在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 Css/>
? ?</asp:BoundField>

读书人网 >其他相关

热点推荐