![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CSS
zq爱生活爱代码
这个作者很懒,什么都没留下…
展开
-
div 消除与页面直接的距离
<style>body{margin:0px;padding:0px;}</style>原创 2019-11-05 09:30:36 · 277 阅读 · 0 评论 -
CSS 设定导航栏
*{margin:0px;}div{height:300px;width:800px;margin:0px auto;//设定div居中显示}ul li{float:left; //排成一行显示list-style:none;//去掉黑点width:150px;line-height:300px;//将文字居中显示}a:hover{fo...原创 2019-10-24 23:59:53 · 266 阅读 · 0 评论 -
CSS 字体属性
1.字体包括 字体,大小,颜色,显示效果font-family 设置字体系列font-size 设置字体大小font-style 字体样式 倾斜text-decoration 下划线,上划线,中划线 可能有的浏览器不支持font-weight 字体粗的大小...原创 2019-10-24 23:47:30 · 88 阅读 · 0 评论 -
清除浮动效果
如果一个div中,有div float:left但是其余没有设定float的元素也浮动了,因此需要清除浮动效果clear:both;原创 2019-10-24 05:29:25 · 148 阅读 · 0 评论 -
背景图片全屏
.bg { background-image:url("../static/jpg/timg.jpg"); background-position:center top; background-size:100% 100%; background-repeat:no-repeat; width:100%; height:100%; z-ind...原创 2019-10-24 04:42:27 · 292 阅读 · 0 评论 -
input file控件样式
.file { position: relative; display: inline-block; background: #D0EEFF; border: 1px solid #99D3F5; border-radius: 4px; padding: 4px 12px; overflow: hidden; color: #1E8...转载 2019-10-08 08:54:19 · 400 阅读 · 0 评论