CSS小问题?
firefox 只要写position:absoulte; div就不居中
<div class= "s "> </div>
<div class= "s2 "> </div>
s{width:500px; margin:0 auto;}
s2{width:500px; margin:0 auto; position:absoulte;}
[解决办法]
FF的,不是很清楚,可以GG下 firefox position:absolute
[解决办法]
对,在网上搜一下,应该可以解决
[解决办法]
FF就是这样的,与IE还是有些差异,建议多测试还有在网上多找找相关资料。
[解决办法]
火狐狸与ie还是有很多不同的 。
[解决办法]
<!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>
<title> Test </title>
<meta http-equiv= "Content-Type " content= "text/html; charset=UTF-8 " />
<style type= "text/css ">
body {
margin:0;
padding:0;
}
#left {
float:left;
border: 2px solid blue;
background-color: red;
width: 200px;
}
#right {
border: 2px solid red;
background-color: blue;
margin-left:204px;
width: auto;
}
* html #right {
margin-left: 200px;
}
</style>
</head>
<body>
<div id= "left "> LEFT LEFT LEFT LEFT LEFT LEFT LEFT LEFT LEFT LEFT LEFT </div>
<div id= "right "> RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT RIGHT </div>
</body>
</html>