a
您现在的位置:文学月刊 > 儿童文学

纯CSS3制作页面切换效果的实例代码 小桔灯作文学费多少

发布者:admin
日期:2019-06-09 08:20

纯CSS3制作页面切换效果的实例代码 小桔灯作文学费多少

htmlheadtitle/titlestyletype=text/css*{margin:0;padding:0;border:none;}.Bl{width:600px;height:540px;margin:0auto;position:relative;top:50%;transform:translateY(-50%);}.Blinput{width:20%;height:40px;position:absolute;cursor:pointer;opacity:0;}.Blinput:nth-of-type(1){left:0%;}.Blinput:nth-of-type(2){left:20%;}.Blinput:nth-of-type(3){left:40%;}.Blinput:nth-of-type(4){left:60%;}.Blinput:nth-of-type(5){left:80%;}/*切换效果*/.Blinput:nth-of-type(1):checked~span:nth-of-type(1){color:white;}/*~选择兄弟元素*/.Blinput:nth-of-type(2):checked~span:nth-of-type(2){color:white;}.Blinput:nth-of-type(3):checked~span:nth-of-type(3){color:white;}.Blinput:nth-of-type(4):checked~span:nth-of-type(4){color:white;}.Blinput:nth-of-type(5):checked~span:nth-of-type(5){color:white;}.Blinput:nth-of-type(1):checked~.{}.Blinput:nth-of-type(2):checked~.{transform:translateY(-100%);}.Blinput:nth-of-type(3):checked~.{transform:translateY(-200%);}.Blinput:nth-of-type(4):checked~.{transform:translateY(-300%);}.Blinput:nth-of-type(5):checked~.{transform:translateY(-400%);}span{display:block;width:20%;height:40px;background-color:red;float:left;text-align:center;line-height:40px;font-size:20px;}.pagebox,.pages{width:100%;height:500px;}.pagebox{overflow:hidden;}.pages{transition:;}.page{width:100%;height:100%;text-align:center;font-family:微软雅黑font-size:30px;line-height:500px;color:white;}.page1{background-color:pink;}.page2{background-color:blue;}.page3{background-color:red;}.page4{background-color:green;}.page5{background-color:black;}/style/headbodydivclass=Blinputtype=radioname=btncheckedspan1/spaninputtype=radioname=btnspan2/spaninputtype=radioname=btnspan3/spaninputtype=radioname=btnspan4/spaninputtype=radioname=btnspan5/spansectionclass=pageboxdivclass=pagesdivclass=pagepage1Thisispage1/divdivclass=pagepage2Thisispage2/divdivclass=pagepage3Thisispage3/divdivclass=pagepage4Thisispage4/divdivclass=pagepage5Thisispage5/div/div/section/div/body/html以上所述是小编给大家介绍的纯CSS3制作页面切换效果的实例代码,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。 在此也非常感谢大家对脚本之家网站的支持!如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!。

上一篇:盛唐名将郭子仪 盛唐名将之乱世英雄程咬金 传统文化手工

下一篇: 【公安往事】“模范人民警察”张国富:舍身救儿童牺牲 优秀作文题目大全

友情链接