ASP.NET BorderWidth Property
คำหมายและวิธีใช้
BorderWidth Property ใช้เพื่อตั้งค่าหรือกลับค่าความกว้างของความจำกัดที่มีอยู่ของความจำกัด
ระบุ
<asp:webcontrol id="id" BorderWidth="length" runat="server" />
ค่า | คำอธิบาย |
---|---|
length | ความกว้างของขอบ ต้องเป็นหน่วยยาวความยาว .NET ที่ถูกต้อง หน่วยยาวที่ถูกต้องคือ cm, mm, in, pt, pc หรือ px |
ตัวอย่าง
ตัวอย่างนี้ตั้งค่าความกว้างของขอบตาราง
<form runat="server"> <asp:Table runat="server" BorderWidth="5" GridLines="vertical"> <asp:TableRow> <asp:TableCell>Hello</asp:TableCell> <asp:TableCell>World</asp:TableCell> </asp:TableRow> </asp:Table> </form>
ตัวอย่าง
- ตั้งค่า BorderWidth ของ Table Control