HTML CSS : how to draw dotted box around <div>?

标签 html css

我在SO中看到有很多DIV被虚线包围,如何在CSS和HTML中做到这一点?

谢谢。 斌

最佳答案

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

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

关于HTML CSS : how to draw dotted box around <div>?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4048753/

相关文章:

html - 覆盖父元素的宽度

jquery - 透明地将焦点处理程序绑定(bind)到 Knockout.js 添加的新文本输入

css - float :right sidebar enjoys sitting below my content

html - 无法在具有全宽 PrimeNg 轮播的移动设备上垂直滚动页面

jQuery noob : click function css. .. 我做错了什么,但是什么?

html - 如何使元素 (<a>) 拉伸(stretch)到其父元素(容器)的整个宽度?

html - 使用 HTML 显示多列列表的最佳方式

php - mPDF:CSS 中的图像

css - 在嵌套的 div 内更改鼠标悬停时图层的颜色

html - 样式规则应用于错误的元素