一个关于CSS布局方面的问题

来源:百度知道 编辑:UC知道 时间:2024/06/21 21:11:17
请高手帮写一份CSS吧。

其实这个布局可以用N多种方法来制作,我用了种最简单的方法(傻子办法),不过对浏览器的兼容很好 呵呵 高手飘过

代码如下:(复制一下代码 保存为HTML文件浏览一下)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
#c111 { width:700px; height:100px; border:1px solid #72909b; }
#c222 { width:700px; height:350px; border:1px solid #72909b; margin-top:10px; }
.c222_1 { width:220px; height:150px; border:1px solid #0099CC; margin:10px; float:left; }
.c222_2 { width:180px;