关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

CSS 盒模型 #21

发布时间:2023-06-27 11:00:19

盒模型


盒模型分IE盒模型(怪异盒模型)和W3C盒模型,属性分别是margin、border、padding、content,两者的区别在于,IE盒模型:,而w3c盒模型:,这个和现实当中的盒子比较类似,所以称之为盒模型。w3c在CSS3中新增了一个属性,box-ssize。包含两个属性:和。,width=content + padding + borderwidth=contentcontent-boxborder-boxcontent-box:width=widthborder-box:width=content+padding+border


/template/Home/leiyu/PC/Static