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

Đặt outline style dạng đường chấm (dotted) bằng CSS

Dùng outline-style: dotted cùng outline-width.

Ví dụ

<html>
    <head></head>
    <body>
        <p style="outline-width:7px; outline-style:dotted;">
            This text is having 7px dotted outline.
        </p>
    </body>
</html>