刚刚弄的一个css在firefox下不能居中 不指定

admin , 2006/04/20 22:44 , 积累些,自己也写些 , Comments(0) , Reads(3974) , Via Original
去看了好多网站,发现都会居中,而这个


<!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">


也没有去掉!但是他们的会标准
wpsni.f78.net
这个网站我是去掉前面的那一段话!但这个好像不是关键!

我想现在做出的这个cms先按ie6.0的标准备去做了!质量的话,我以后可以增加,但是我现在要的是速度!

分格,应该是学网易的了!

==||
==||

呵,像上面的这一种,现在跟自己说下班了!
还有,这个在www.w3cn.org检察时,错了很多!


<style type="text/css">

body,td,th {
 font-size: 12px;
}
body {text-align:center; margin:0px; }
body > div {text-align:center; margin-right:auto; margin-left:auto;}
form, input, select {margin:0px; padding:0px;}
body, div {font-size:12px; font-family:宋体;}
img,a img{border:0; margin:0; padding:0;}
input,select{font-size:12px;vertical-align:middle}
input{padding-top:2px}
#all {
 text-align:center; margin-right:auto; margin-left:auto;
 margin: 0px;
 padding: 0px;
 text-align: center;
 width: auto;
 background-image: url(images/bg.gif);
 clear: both;  
}
#body {
 text-align: center;
 background-color: #FFFFFF;  
 height: auto;
 width: 778px;
}
#head_top {
 width: 766px;
 height: 87px;
 background-color: #F0F1F3;
}
#head_menu {
 color: #FFFFFF;
 background-color: #C60000;
 text-align: center;
 height: 20px;
 width: 766px;
 padding-top: 5px;
}
#copytop {
 color: #FFFFFF;
 background-color: #C60000;
 text-align: center;
 height: 20px;
 width: 766px;
 padding-top: 3px;
}
#copyright {
 background-color: #EAEAEA;
 height: 50px;
 width: 766px;
 padding-top: 20px;
}
</style>

Tags: , ,
Add a comment

Nickname

Site URI

Email

Enable HTML Enable UBB Enable Emots Hidden Remember [Login] [Register]