![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
你的美失控了
这个作者很懒,什么都没留下…
展开
-
CSS学习记录4
列表list-style:none;(去除标志) disc square circle浮动让元素脱离文档流让块级元素在同行中显示float:left;float:right;改变的是z轴清除浮动(1)在浮动元素后清除 clear:left; right; both;(2)给浮动元素的父级固定高度(块级元素独占一行)(3)给父级元素加上一个属性(heigh原创 2017-02-28 16:29:44 · 238 阅读 · 0 评论 -
CSS学习记录5
1、相对定位参考点:自己position:relative;top:10px;bottom:20px;left:30px;right:40px;原先自己的位置还是被自己霸占2、绝对定位参考点:相对定位过的父级()position:absolute;top:10px;bottom:20px;left:30px;right:40px;改变元素原创 2017-02-28 16:33:07 · 133 阅读 · 0 评论 -
CSS学习记录1
CSS 也叫层叠样式表1、优点修改简单可以独立存在(多个页面可以同时使用)2、分类(1)浏览器缺省(默认)(2)内联样式(作用于当前标记)(3)内部样式(作用于当前页面)(4)外部样式(作用于整个网站)3、内联样式(直接在标记中写的属性)写法:内容字体样式:颜色:color:red;字号大小:font-size:12px;多个属性之间原创 2017-02-22 14:49:07 · 179 阅读 · 0 评论 -
CSS学习记录6
伪类1、普通的伪类p:nth-of-type(1){}p:nth-of-type(2){}第一个p:first-child{}最后一个p:last-child{}2、锚伪类a:link{}未点击时(常用) a{}a:visited{}点击过后a:hover{}鼠标悬停(常用)a:active{}点击时刻二级菜单的显示隐藏display:non原创 2017-03-02 15:21:27 · 301 阅读 · 0 评论 -
CSS学习记录2
1、分组选择器标记选择器 类选择器 ID选择器 搭配使用span,p,h1{color:#eee;}2、派生选择器通过父级找子级div span{color:#eee;}3、属性选择器[name]{color="#eee";}[name="username"]{color="#eee";}input[name="原创 2017-02-23 15:08:10 · 169 阅读 · 0 评论 -
CSS学习记录3
背景定位background-position:100px(水平) 50px(垂直)background-position:10%px(水平) 50%px(垂直)background-position:top left;right bottom;center设置一个值时,background-position:100px 水平方向向右移动100px,垂直方向默认center原创 2017-02-24 17:19:24 · 292 阅读 · 0 评论