
CSS
代码-君
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PC 端两端对齐 中间等分
无标题文档 body{margin:0;padding:0;} ul,li{margin:0;padding:0;list-style:none;} .tab{ width:500px; margin:0 auto; height:300px; border:1px solid #000; } ul{ width:100%; text-a原创 2015-07-01 11:20:08 · 576 阅读 · 0 评论 -
box-sizing 属性
规定两个并排的带边框的框: div { box-sizing:border-box; -moz-box-sizing:border-box; /* Firefox */ -webkit-box-sizing:border-box; /* Safari */ width:50%; float:left; } 亲自试一试 页面底部有更多实例。 浏览器支持转载 2015-10-07 10:18:00 · 713 阅读 · 0 评论 -
background-position
background-position -- 定义背景图片的位置 取值: [ [ | | left | center | right ] [ | | top | center | bottom ]? ] | [ [ left | center | right ] || [ top | center | bottom ] ] | inherit 水平 left: 左转载 2015-10-07 10:44:07 · 351 阅读 · 0 评论