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

ตั้งค่า Outline Width, Style, Color พร้อมกันด้วย CSS Shorthand

คุณสมบัติ outline เป็น Shorthand Property ที่รวม outline-width, outline-style, outline-color ในบรรทัดเดียว

ตัวอย่าง

<html>
<head></head>
<body>
    <p style="outline: thin solid green;">
        This text is having thin solid green outline.
    </p>
    <br />
    <p style="outline: thick dashed #009900;">
        This text is having thick dashed green outline.
    </p>
</body>
</html>

รูปแบบ: outline: [width] [style] [color];