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

Đặt màu outline bằng CSS

Thuộc tính outline-color chỉ định màu viền ngoài. Giá trị: tên màu, hex, rgb.

Ví dụ

<html>
    <head></head>
    <body>
        <p style="outline-width:thin; outline-style:solid; outline-color:blue">
            This text is having thin solid blue outline.
        </p>
        <br />
    </body>
</html>