คุณสมบัติCSS สไตล์เส้นขอบขวา
ตัวอย่าง
กำหนดสไตล์สำหรับเส้นขอบด้านขวา:
div {border-right-style: dotted;}
ตัวอย่าง "ลองใช้เอง" เพิ่มเติมด้านล่าง
ความหมายและการใช้งาน
คุณสมบัติborder-right-style
กำหนดรูปแบบของเส้นขอบด้านขวาขององค์ประกอบ
ค่าเริ่มต้น: | ไม่มี |
---|---|
รับการถ่ายทอด: | ไม่ |
เคลื่อนไหวได้: | ไม่. อ่านเกี่ยวกับแอนิเมชั่น |
รุ่น: | CSS1 |
ไวยากรณ์ JavaScript: | วัตถุ .style.borderRightStyle="dotted" |
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนคุณสมบัติอย่างสมบูรณ์
Property | |||||
---|---|---|---|---|---|
border-right-style | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
ไวยากรณ์ CSS
border-right-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
มูลค่าทรัพย์สิน
Value | Description | Play it |
---|---|---|
none | Specifies no border. This is default | |
hidden | The same as "none", except in border conflict resolution for table elements | |
dotted | Specifies a dotted border | |
dashed | Specifies a dashed border | |
solid | Specifies a solid border | |
double | Specifies a double border | |
groove | Specifies a 3D grooved border. The effect depends on the border-color value | |
ridge | Specifies a 3D ridged border. The effect depends on the border-color value | |
inset | Specifies a 3D inset border. The effect depends on the border-color value | |
outset | Specifies a 3D outset border. The effect depends on the border-color value | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
ตัวอย่างเพิ่มเติม
ตัวอย่าง
เส้นประขอบขวา:
div {border-right-style: dashed;}
ตัวอย่าง
เส้นขอบด้านขวาทึบ:
div {border-right-style: solid;}
ตัวอย่าง
เส้นขอบขวาคู่:
div {border-right-style: double;}
ตัวอย่าง
ลบขอบด้านขวา:
div {border-right-style: none;}
ตัวอย่าง
ร่องขอบขวา:
div {
border-right-style: groove;
border-right-color: coral;
border-right-width: 7px;
}
ตัวอย่าง
ขอบขวาของสันเขา:
div {
border-right-style: ridge;
border-right-color: coral;
border-right-width: 7px;
}
ตัวอย่าง
แทรกขอบขวา:
div {
border-right-style: inset;
border-right-color: coral;
border-right-width: 7px;
}
ตัวอย่าง
เส้นขอบด้านขวาเริ่มต้น:
div {
border-right-style: outset;
border-right-color: coral;
border-right-width: 7px;
}
หน้าที่เกี่ยวข้อง
กวดวิชา CSS: CSS Border
การอ้างอิง CSS: คุณสมบัติ border-right
การอ้างอิง HTML DOM: borderRightStyle คุณสมบัติ