好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

请教关于nth-child的问题_html/css_WEB-ITnose

有如下代码
 .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的详细内容...

  阅读:32次