求高手帮我看看这个代码帮我改改!!
html5吧
全部回复
仅看楼主
level 3
<!DOCTYPE html>
<html>
<body> <div id="container" style="width:500px"> <div id="header" style="background-color:#FFA500;">
<h1 style="margin-bottom:0;">Main Title of Web Page</h1></div> <div id="menu" style="background-color:#FFD700;height:300px;width:100px;float:left;"></div>
<div>
<div>
<div id="content" style="background-color:#EEEEEE;height:200px;width:200px;float:left;"></div>
<div id="content" style="background-color:#cccccc;height:200px;width:200px;float:left;"></div>
</div>
<div id="footer" style="height:100px;width:400px;background-color:#06F9FF;clear:both; ">求求 !!把我移动到上面去</div>
</div>
</div>
<div id="footer" style="width:500px; background-color:#FFA500;clear:both;text-align:center;">C</div>
</body>
</html>
2012年11月26日 02点11分 1
level 3
你为什么不把css分离出来
2012年11月26日 04点11分 3
我才学到html , 还没有学到css
2012年11月26日 14点11分
继续学习吧,学到css就明晰了,不分离出来可读性不是一般差
2012年11月26日 14点11分
回复 liang11411801 :呵呵 还请师兄多多指教哦
2012年11月27日 09点11分
level 1
你把那个DIV变成左浮动不就好了么。粗体那儿
<!DOCTYPE html>
<html>
<body> <div id="container" style="width:500px"> <div id="header" style="background-color:#FFA500;">
<h1 style="margin-bottom:0;">Main Title of Web Page</h1></div> <div id="menu" style="background-color:#FFD700;height:300px;width:100px;float:left;"></div>
<div>
<div>
<div id="content" style="background-color:#EEEEEE;height:200px;width:200px;float:left;"></div>
<div id="content" style="background-color:#cccccc;height:200px;width:200px;float:left;"></div>
</div>
<div id="footer" style="height:100px;width:400px;background-color:#06F9FF;<!--clear:both;-->float:left; ">求求 !!把我移动到上面去</div>
</div>
</div>
<div id="footer" style="width:500px; background-color:#FFA500;clear:both;text-align:center;">C</div>
</body>
</html>
2012年12月17日 08点12分 5
1