.formtabs .panel { display: none; }.formtabs .panel:first-child { display: block; }.formtabs input[name="tabs"]:checked ~ .panels .panel { display: none; }.formtabs input[name="tabs"]:nth-of-type(1):checked ~ .panels .panel:nth-child(1),.formtabs input[name="tabs"]:nth-of-type(2):checked ~ .panels .panel:nth-child(2),.formtabs input[name="tabs"]:nth-of-type(3):checked ~ .panels .panel:nth-child(3) { display: block; }
查看更多关于请教关于nth-child的问题_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did111830
请教关于nth-child的问题_html/css_WEB-ITnose
有如下代码
阅读:32次