Latest web development tutorials

ASP.NET BorderStyle property

Web Control Standard Properties Reference Web Control Standard Properties Reference

Definition and Usage

BorderStyle property sets or returns the border style of the control.

grammar

<asp:webcontrolid="id" BorderStyle="style"runat="server" />

Possible Style Values

描述
notSet 不设置边框样式。
none 定义无边框。
dotted 定义点状边框。
dashed 定义虚线边框。
solid 定义实线边框。
double 定义双实线边框。双线的宽度等于 border-width 的值。
groove 定义 3D 凹槽边框。其效果取决于 border-color 的值。
ridge 定义 3D 垄状边框。其效果取决于 border-color 的值。
inset 定义 3D 内嵌边框。其效果取决于 border-color 的值。
outset 定义 3D 外嵌边框。其效果取决于 border-color 的值。


Examples

The following examples set the table border styles:

<form runat="server">
<asp:Table runat="server" BorderStyle="dotted"
BorderWidth="5" GridLines="vertical">
<asp:TableRow>
<asp:TableCell>Hello</asp:TableCell>
<asp:TableCell>World</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

The demonstration >>

Web Control Standard Properties Reference Web Control Standard Properties Reference