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

Đặt độ rộng outline bằng CSS

outline-width thiết lập độ rộng viền ngoài. Giá trị: length hoặc thin/medium/thick.

Ví dụ

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