例:<style type="text/css">#div1{display:none;width:500px;height:300px;background:white;border:2px solid black;}#div2{display:block;width:150px;height:200px;background:red;margin-left:30px;margin-top:30px;}</style></head><body><div id="div1" ><div id="div2"></div></div>現在想要先只div2
css如何控制父div層隱藏 子div層顯示?
慕工程0101907
2018-11-22 23:18:41