js怎样清除浮动??

JavaScript09

js怎样清除浮动??,第1张

#first ul li{list-style-type:nonedisplay:blockwidth:70pxheight:30pxbackground:bluetext-align:centerline-height:30px}

    

#second ul li{list-style-type:nonedisplay:blockwidth:70pxheight:20pxbackground:greentext-align:centerline-height:20px}

去掉浮动不就垂直排列了么~

在js里面,直接把这个图形的div全部innerHTML=""就完全清除了........

比如放视频的<div id="div1">视频内容</div>

document.getElementById("div1").innerHTML = ""