Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> CSS

Đặt width, line style, color cho outline trong một câu lệnh CSS

Thuộc tính shorthand outline gộp width, style, color.

Ví dụ

<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>