Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

กำหนดรูปแบบเส้น Outline ด้วย CSS

คุณสมบัติ outline-style ใช้ระบุรูปแบบเส้นที่ล้อมรอบ Element

ตัวอย่าง

<html>
<head></head>
<body>
    <p style="outline-width:thin; outline-style:solid;">
        This text is having thin solid outline.
    </p>
    <br />
    <p style="outline-width:thick; outline-style:dashed;">
        This text is having thick dashed outline.
    </p>
    <br />
    <p style="outline-width:5px; outline-style:dotted;">
        This text is having 5px dotted outline.
    </p>
</body>
</html>

ค่าที่ใช้ได้: none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset