css不能很好的控制页面
来源:百度知道 编辑:UC知道 时间:2024/06/02 05:32:12
<!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>
body{padding:0px;margin:0px;}
#header {background: url(logo.gif) no-repeat; padding:0px; margin:0 auto;}
#menuleft{float:left;list-style:none;}
#menuright{float:right;list-style:none;}
#menu ul li{list-style-type:none;border-left:1px solid #999;float:left;padding:0 6px;}
#menu .first{border:none;}
#menu {
margin:0 auto;
padding:0px ;
} <
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档 </title>
<style>
body{padding:0px;margin:0px;}
#header {background: url(logo.gif) no-repeat; padding:0px; margin:0 auto;}
#menuleft{float:left;list-style:none;}
#menuright{float:right;list-style:none;}
#menu ul li{list-style-type:none;border-left:1px solid #999;float:left;padding:0 6px;}
#menu .first{border:none;}
#menu {
margin:0 auto;
padding:0px ;
} <