盒子模型css

来源:互联网 发布:淘宝搜索热词排行榜 编辑:程序博客网 时间:2024/05/19 10:39

1.css内边距:在content外,边距内

padding: 设置所有边距

padding-bottom: 底边距

padding-left: 左边距

padding-right: 右边距

padding-top: 上边距


2.css边框:创建出效果出色的边框,应用于任何颜色

border-style: 定义了10个不同的非继承样式,包括 none 

边框单边样式:

border-top-style

border-left-style

border-right-style

border-bottom-style

border-width: 边框宽度

单边框宽度: border-top-width ;

边框颜色: border-color

border-top-color 

圆角边框:border-radius: 10px;

边框阴影:box-shadow: 10px(向右移动) 10px(向下移动) 5px(阴影面积差) #FFccFF(颜色)

边框图片: border-image:


外边距:margin:设置所有边距 


0 0
原创粉丝点击