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

Đặt line style cho outline bằng CSS

Thuộc tính outline-style chỉ định kiểu đường viền ngoài.

Ví dụ

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