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

ตั้งค่า Outline เป็นเส้นประ (Dotted) ด้วย CSS

เพื่อตั้งค่า Outline ให้เป็นเส้นประ ใช้คุณสมบัติ outline-style ค่า dotted

ตัวอย่าง

<html>
<head></head>
<body>
    <p style="outline-width:7px; outline-style:dotted;">
        This text is having 7px dotted outline.
    </p>
</body>
</html>

คุณสมบัติที่เกี่ยวข้อง: outline-width (ความหนา), outline-color (สี), outline-style (รูปแบบ)