来看看我做的吧,至少比这老师做的简单。http://oqgretia3.bkt.clouddn.com/TogglePages.html
2017-06-09
oh ~! come on ~ 建议以后做这类教程不要讲太多基础的东西,如果有人看不懂他就不应该来看这个,而是去看CSS3的基础,案例不应该讲这么多话,应该讲的是方法,我的耳朵都听得有点疼了,老师的嘴像机关枪一样哒哒哒停不下来,我的天这语速,不知道是不是吃了炫迈
2017-06-08
除去hover对选中元素的影响也可以这样:
.st-container input:hover+a{
background: #ad244f;
}
.st-container input:checked+a{
background: #821134;
}
将.st-container input:checked+a写在.st-container input:hover+a后面就行
.st-container input:hover+a{
background: #ad244f;
}
.st-container input:checked+a{
background: #821134;
}
将.st-container input:checked+a写在.st-container input:hover+a后面就行
2017-06-03
h2动画效果只有第一个有
#st-control-1:checked ~ .st-scroll #st-panel-1 h2,
#st-control-2:checked ~ .st-scroll #st-panel-2 h2,
#st-control-3:checked ~ .st-scroll #st-panel-3 h2,
#st-control-4:checked ~ .st-scroll #st-panel-4 h2,
#st-control-5:checked ~ .st-scroll #st-panel-5 h2
#st-control-1:checked ~ .st-scroll #st-panel-1 h2,
#st-control-2:checked ~ .st-scroll #st-panel-2 h2,
#st-control-3:checked ~ .st-scroll #st-panel-3 h2,
#st-control-4:checked ~ .st-scroll #st-panel-4 h2,
#st-control-5:checked ~ .st-scroll #st-panel-5 h2
2017-05-23