css之top,right,bottom,left
2016-10-11 14:51
489 查看
在控制盒子模型大小、方位时最常用的莫过于这四个方向:上,右,底,左。鉴于css规定一群操蛋的赋值方法,在此以博客记录一下,以免一忘再忘^_^
以margin为例:
元素名称{margin:n个值}
n为4:依次顺序为top right bottom left
n为3:top left and right bottom
n为2:top and bottom left and right
n为1:上下左右一个值
以上,单位为px,注意数值之间留一个空格即可,不要填逗号,否则会报错
以margin为例:
元素名称{margin:n个值}
n为4:依次顺序为top right bottom left
n为3:top left and right bottom
n为2:top and bottom left and right
n为1:上下左右一个值
以上,单位为px,注意数值之间留一个空格即可,不要填逗号,否则会报错
相关文章推荐
- div+css - CSS标准 - 8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin' - 8.3边距属性
- (四)学习CSS之position、bottom、left、right和top属性
- css left right top bottom定位
- CSS中边偏移属性top,right,bottom,left
- css中定位position、偏移top,bottom,left,right和高宽度设置问题
- css中absolute定位的top bottom left right
- ios UIkit和css中的left、right、top、bottom
- css属性left、right、top、bottom
- css中的relative相对定位的top bottom left right
- css中的clip属性rect(top,right,bottom,left);
- position:fixed; top: 0; right: 0; bottom: 0; left: 0;的意思
- DrawableLeft,DrawableTop,Right,Bottom点击事件的实现
- TextView 代码设置drawableLeft、drawableRight、drawableTop、drawableBottom
- Unity UGUI 设置 left 、right、top、bottom
- 动态设置android:drawableLeft|Right|Top|Bottom
- Android在代码中设置控件的drawableLeft,drawableRight,drawableTop,drawableBottom。
- 动态设置android:drawableLeft|Right|Top|Bottom
- position:fixed; top: 0; right: 0; bottom: 0; left: 0;的意思
- crect类里的left , top ,right , bottom分别是什么坐标?
- position+left+bottom+top+right