如何才能完成與https://stackoverflow.com/a/1032952/288568中相同的外觀,但右邊的div是HTML中的第一個(所以它在第一次顯示時顯示爲一個手機,我左右堆疊在一起)?使右div充滿剩餘空間,但首先在HTML代碼中
<html>
<head>
\t <title>This is My Page's Title</title>
\t <style type="text/css">
\t \t #left {
\t \t \t float:left;
\t \t \t width:180px;
\t \t \t background-color:#ff0000;
\t \t }
\t \t #right {
\t \t \t width: 100%;
\t \t \t background-color:#00FF00;
\t \t }
\t </style>
</head>
<body>
\t <div>
\t \t <div id="right">
\t \t \t right
\t \t </div>
\t \t <div id="left">
\t \t \t left
\t \t </div>
\t </div>
</body>
</html>
是很重要的是左側的寬度是180像素是另一種選擇,在這裏? – natel