摘要: CSS3中,追加了三个属性选择器分别为: [att*=val]。属性值中有val的元素被选中 [att^=val] 属性值中以val 开头的 [att$=val] 属性值中以val结束的 如果val为数字则数字前边加反斜杠 使属性选择器有通配符的概念 ////伪类选择器 伪元素选择器 first-l 阅读全文
posted @ 2018-05-31 19:14 向日葵的微笑~ 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 2D转换: translate() rotate() scale() skew() matrix() .div{ transform:translate(100px(X坐标),100px(Y坐标)); -webkit-transform:translate(100px(X坐标),100px(Y坐标) 阅读全文
posted @ 2018-05-31 18:38 向日葵的微笑~ 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 选择器分组: 1. h1,h2{} 2. *{} 元素选择器(p) 类选择器(.class{}) 结合元素选择器(a.class{}) 多类选择器(.class.class{}) ID选择器(#id{}) ID选择器与类选择器区别: ID在文档中只能使用一次,类可以使用多次 ID选择器不能结合使用 阅读全文
posted @ 2018-05-31 17:46 向日葵的微笑~ 阅读(112) 评论(0) 推荐(0) 编辑
摘要: ////对齐操作 使用margin属性进行水平对齐 margin:0 auto; 使用position属性进行左右对齐 使用float属性进行左右对齐 ////分类 尺寸操作 height line-height max-height min-height max-width min-width w 阅读全文
posted @ 2018-05-31 17:23 向日葵的微笑~ 阅读(92) 评论(0) 推荐(0) 编辑
摘要: margin border padding content(width height) 阅读全文
posted @ 2018-05-31 16:58 向日葵的微笑~ 阅读(84) 评论(0) 推荐(0) 编辑
摘要: //////////CSS定位 1/position: static;文档流基本状态 relative;占位置,相对于原来位置定位 absolute;不再占位置,相对(0,0)点 fixed;页面滚动不动 z-index越大越在上面 //////////浮动 float: left right no 阅读全文
posted @ 2018-05-31 16:55 向日葵的微笑~ 阅读(100) 评论(0) 推荐(0) 编辑
摘要: ////////////字体 font-size. 字体大小 font-family 改变字体的样式,仿宋,微软雅黑。。。 @font-face{ font-family:myFont; src:url(); } div{ font-family:myFont; } /////////////链接 阅读全文
posted @ 2018-05-31 16:32 向日葵的微笑~ 阅读(122) 评论(0) 推荐(0) 编辑
摘要: color. 文本颜色 可以继承 line-height. 行高 text-align. 对齐元素中的文本 text-indent. 首行缩进。 text-transform 元素中的字母。upercase lowercase. ... CSS3文本效果: text-shadow. 向文本添加阴影 阅读全文
posted @ 2018-05-31 16:02 向日葵的微笑~ 阅读(124) 评论(0) 推荐(0) 编辑
摘要: background-attatchment 图片背景是否固定或者随着网页的其余部分滚动 background-color. 设置元素的背景颜色 background-image "url()". 把图片设置为背景 background-position 设置背景图片的起始位置 background 阅读全文
posted @ 2018-05-31 15:43 向日葵的微笑~ 阅读(104) 评论(0) 推荐(0) 编辑