盒模型中,如何设置文字在边框中间
div{border:1px dotted red;weight:100px;height:100px}
假设这个div中间有“盒子”两个字,如何补充以上代码让“盒子”这两个字完全居中?就是上下左右距离边框的距离都一样
div{border:1px dotted red;weight:100px;height:100px}
假设这个div中间有“盒子”两个字,如何补充以上代码让“盒子”这两个字完全居中?就是上下左右距离边框的距离都一样
2016-07-16
举报