이 매우 간단합니다.
는 여기에 내가 대신 절대 위치의 수레를 사용하고 코드
<html>
<head>
<style type="text/css">
#left {
float: left;
width: 150px;
border: 1px solid black;
background-color: #999;
height: 50px;
}
#right {
float: right;
width: 150px;
border: 1px solid black;
background-color: #999;
height: 50px;
}
#center {
/* margin with 10px margin between the blocks*/
margin: 0 160px;
border: 1px solid black;
height: 50px;
}
</style>
</head>
<body>
<div id="left">Text</div>
<div id="right">Text</div>
<div id="center">Text</div>
</body>
</html>
입니다. 절대 위치 위에 수레를 사용하는 이점은 그 밑에 nother div를 놓을 수 있다는 것입니다. 그리고 그 내용을 명확하게 알려주십시오 : 둘 다 자동으로 페이지 하단에 표시됩니다.
여기에 바닥 글
<html>
<head>
<style type="text/css">
#left {
float: left;
width: 150px;
border: 1px solid black;
background-color: #999;
height: 50px;
}
#right {
float: right;
width: 150px;
border: 1px solid black;
background-color: #999;
height: 50px;
}
#center {
/* margin with 10px margin between the blocks*/
margin: 0 160px;
border: 1px solid black;
height: 50px;
}
#footer {
clear: both;
margin-top: 10px;
border: 1px solid black;
}
</style>
</head>
<body>
<div id="left">Text</div>
<div id="right">Text</div>
<div id="center">Text</div>
<div id="footer">footer</div>
</body>
</html>
짜잔과 예입니다! 액체 배치가 있습니다.
적어도 부유물에 시달릴 때까지. 행운을 비네. – SamGoody