为了账号安全,请及时绑定邮箱和手机立即绑定
首先#id是用于定位页面内的标签,通过target定义id的属性,当触发定位操作时,就触发定义target目标样式
a[class^=column]{
background:red;
}

a[href$=doc]{
background:green;
}
a[title*=box]{
background:blue;
}
哈哈 小日本
display:block;
-webkit-transform: skew(-45deg);
-moz-transform: skew(-45deg);
transform:skew(-45deg);
border-radius:100px / 10px;
"/" 是什么作用
终于懂了
nth-of-type() 是按类型寻找
nth-child 是直接按子元素寻找
nth-child(2n+1) || nth-child(2n-1) || nth-child(odd)
nth-of-type(2n) || nnth-of-type(even)
“:first-of-type”选择器类似于“:first-child”选择器,不同之处就是指定了元素的类型,其主要用来定位一个父元素下的某个类型的第一个子元素。
li:nth-last-of-type(5)
li:nth-last-child(5)
li:nth-child(odd)
li:nth-child(2n+1)
li:nth-of-type(odd)
li:nth-of-type(2n+1)
这个貌似是CSS3新属性,以前没见过。
a[class^=column]{
background-color:red;
}
a[href$=doc]{
background-color:green;
}
a[title]{
background-color:blue;
}
.nav li:after {
content:"";
margin:0 1.2em;
display:inline-block;
width:1px;
height:24px;
position:relative;
top:8px;
background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,0.3),rgba(0,0,0,0));
}

.nav li:last-child:after{ width:0; margin:0; }
没有实用价值的CSS属性。
课程须知
1.html+CSS相关基础知识 2.具有一定的网页制作经验 3.此课程不支持IE9版本以下,建议使用 chrome、safari、firefox、opera浏览器学习本课程。
老师告诉你能学到什么?
1.系统学习CSS3相关知识 2.轻松制作出各种绚丽的效果

微信扫码,参与3人拼团

意见反馈 帮助中心 APP下载
官方微信
友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消