开发者

html css: how to draw dotted box around <div>?

开发者 https://www.devze.com 2023-01-23 02:23 出处:网络
I saw in SO there is a lot of DIV which is开发者_StackOverflow surrounded by dotted lines, how to do it in CSS & HTML?

I saw in SO there is a lot of DIV which is开发者_StackOverflow surrounded by dotted lines, how to do it in CSS & HTML?

Thanks. Bin


<div style="border: dotted 1px black" id="mydiv">content</div> 

or

<style type='text/css'>
    #mydiv { border: dotted 1px black; }
</style>
0

精彩评论

暂无评论...
验证码 换一张
取 消