
css3
IT_datouer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CSS3中的transition属性详解
一、语法 transition: property duration timing-function delay transition属性是个复合属性,她包括以下几个子属性: transition-property :规定设置过渡效果的css属性名称 transition-duration :规定完成过渡效果需要多少秒或毫秒 transition-timing-function :指定过渡函数,规定速度效果的速度曲线 transition-delay :指定开始出现的延迟时间 默认值分别为:all 0 ea原创 2020-11-06 11:09:16 · 2404 阅读 · 0 评论 -
CSS3 :nth-child(n)用法
CSS3 :nth-child(n)用法 :nth-child(n) ---->选中某个元素,该元素必须是某个父元素下的第n个子元素; p:nth-child(n) ---->选中p元素,且该p元素必须是某个父元素下的第n个子元素 注意:n是从1开始的 如下代码,p:nth-child(1),只会选中第二个div中第一个子元素p; 不会选中第一个div中的第一个p,因为第一个div中第一p元素不是第一个子元素 <style> p:nth-child(1){转载 2020-11-05 11:58:34 · 7359 阅读 · 1 评论