2012-01-02 77 views
-4

我的问题是如何将背景分成多个彩色部分。我对编码很陌生,所以如果你可以给我一个简短的解释,我会很感激。谢谢。如何将页面分成多个彩色部分

+3

你能提供更多信息吗?什么类型的背景? – 2012-01-02 03:24:15

+0

恩,html?对不起,我真的不想要成为一个狡猾的人 – 2012-01-02 03:46:15

回答

2
Code For Spiting the page 

<html> 
<div align="top" style="width:1024;height:100;border:solid;border-width:2;background:#ccc;"> 
<img src="yourimage.jpg" height="100" width="1024"></img> 
</div> 

<div style="width:1024;height:200;background:#dedede;"> 
<div style="width:300;height:200;border:solid;border-width:2;float:left;background:#414141;"></div> 
<div style="width:300;height:200;border:solid;border-width:2;float:right;background:#616161;"></div> 
</div> 

<div align="bottom" style="height:100;width:1024;border:solid;background:#868686;""> 
<center>Hello World</center> 
</div> 
</html>