如果我是正確的顯示:內聯應該在同一行上顯示div沒有任何換行符。這是我的網頁,其中顯示:內聯只是讓我的div不可見:div元素與顯示:行內隱藏
<html>
<head>
<style type="text/css">
.body{
max-width:3072px;
min-width:3072px;
margin:0px auto;
background:#293231;
}
.page1{
background:url('Main.jpg') no-repeat;
width:1024px;
height:211px;
}
.page2{
background:url('Page2.jpg') no-repeat;
width:1024px;
height:211px;
display:inline;
}
.page3{
background:url('Page3.jpg') no-repeat;
width:1024px;
height:211px;
display:inline;
}
.wrapper{
display:block;
width:100%;
height:auto;
}
</style>
</head>
<body class="body">
<div class="wrapper">
<div class="page1">
</div>
<div class="page2">
</div>
<div class="page3">
</div>
</div>
</body>
</html>
我能看到的div類=第1頁,但第二頁第三頁和看不見。
也許你只是忘了,包括在這裏,但使用適當的[文檔類型](http://hsivonen.iki.fi/doctype/ #handling)來觸發標準模式。 – 2010-06-26 12:31:11