ASP.NET BorderColor แอตทริบิวต์
การกำหนดและการใช้งาน
BorderColor แอตทริบิวต์ใช้ตั้งค่าหรือกลับค่าสีของชานควบคุม
ระบุ
<asp:webcontrol id="id" BorderColor="color" runat="server" />
แอตทริบิวต์ | รายละเอียด |
---|---|
color | ตั้งค่าสีของชานควบคุม ต้องเป็นสี HTML ที่ถูกต้อง |
ตัวอย่าง
ตัวอย่างนี้ตั้งค่าสีของชานตาราง:
<form runat="server"> <asp:Table runat="server" BorderColor="#FF0000" BorderWidth="5" GridLines="vertical"> <asp:TableRow> <asp:TableCell>Hello</asp:TableCell> <asp:TableCell>World</asp:TableCell> </asp:TableRow> </asp:Table> </form>
ตัวอย่าง
- ตั้งค่า BorderColor ของ Table Control