上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页
摘要: <style> *{ padding: 0; margin: 0; } div{ width: 100px; height: 100px; background-color: red; margin-left: 200px; margin-top:10px; /*添加过渡效果 css样式名称 耗时* 阅读全文
posted @ 2018-12-26 23:35 lujieting0 阅读(216) 评论(0) 推荐(0) 编辑
摘要: <style> *{ padding: 0; margin: 0; } div{ width: 200px; height: 200px; background-color: red; position: absolute; left: 100px; top: 100px; /*添加过渡效果:过渡效 阅读全文
posted @ 2018-12-26 23:31 lujieting0 阅读(167) 评论(0) 推荐(0) 编辑
摘要: <style> *{ padding: 0; margin: 0; } .menu{ width: 200px; height:auto; margin:100px auto; } .item > h3{ height: 40px; line-height: 40px; background-col 阅读全文
posted @ 2018-12-26 23:31 lujieting0 阅读(193) 评论(0) 推荐(0) 编辑
摘要: <style> *{ padding: 0; margin: 0; } /*提升移动端响应区域的大小*/ a{ width: 50px; height: 50px; display: block; background-color: #ddd; margin:100px auto; box-sizi 阅读全文
posted @ 2018-12-26 23:30 lujieting0 阅读(146) 评论(0) 推荐(0) 编辑
摘要: <style> *{ padding: 0; margin: 0; } div{ width: 200px; height: 200px; margin:100px auto; box-sizing: border-box; border: 27px solid red; /*padding: 27 阅读全文
posted @ 2018-12-26 23:30 lujieting0 阅读(186) 评论(0) 推荐(0) 编辑
摘要: <style> div{ width: 300px; height: 500px; border: 1px solid red; /*添加背景*/ background-image: url("images/img/bg-img.jpg"); /*background-image: url("ima 阅读全文
posted @ 2018-12-26 23:29 lujieting0 阅读(177) 评论(0) 推荐(0) 编辑
摘要: <style> /*线性渐变*/ div{ width: 300px; height: 300px; /*添加渐变:渐变不是一个单一钩,它产生的是图像,所以需要使用background*/ /*linear-gradient(方向,开始颜色 位置,颜色2 位置,颜色3 位置...);*/ /*方向: 阅读全文
posted @ 2018-12-26 23:28 lujieting0 阅读(685) 评论(0) 推荐(0) 编辑
摘要: <style> *{ padding: 0; margin: 0; } body { margin: 0; padding: 0; background-color: #F7F7F7; } img { width: 100%; display: block; } .items { padding: 阅读全文
posted @ 2018-12-26 23:27 lujieting0 阅读(219) 评论(0) 推荐(0) 编辑
摘要: <!--/*设置盒模型*/--><!--content-box:你设置的width属性值仅仅是内容的宽度, 盒子的最终的宽高值在width的基础上再加上padding和border的宽度*/--><!--border-box:你设置的width属性值就是盒子的最终的宽度, 包含了border和pad 阅读全文
posted @ 2018-12-19 20:09 lujieting0 阅读(362) 评论(0) 推荐(0) 编辑
摘要: /*添加阴影 text-shadow:offsetX offsetY blur color*/.demo1{ text-shadow: -2px -2px 5px red;}.demo2{ text-shadow: 0px 0px 30px #fff;}/*多层阴影效果*/.demo3{ text- 阅读全文
posted @ 2018-12-19 20:08 lujieting0 阅读(224) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页