왼쪽에 텍스트가있는 간단한 2 열 페이지와 오른쪽에있는 다양한 로고와 것들을 조합하려고합니다. 오른쪽 열의 맨 아래에 몇 개의 텍스트를 배치해야합니다. 간단한 position: absolute; width: 250px; bottom: 0;
은 내가 필요한 모든 것처럼 보였다.위치 : Firefox의 절대 값
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body{
margin: 0px;
background-color: #eee;
}#content{
background: white;
width: 900px;
text-align: left;
font-family: Arial, Helvetica, sans-serif;
}#text{
padding-left: 8px;
padding-right: 8px;
}.left{
width: 634px;
border-right: 2px solid black;
}.right{
width: 250px;
text-align: center;
position: relative;
}.bottom{
position: absolute;
width: 250px;
bottom: 0;
}
</style>
</head>
<body>
<center>
<div id="content">
<div id="body">
<table border=0>
<tr valign="top">
<td id="text" class="left">
Some text
</td><td class="right">
<center class="bottom">
Bottom
</center>
</td>
</tr>
</table>
</div>
</div>
</center>
</body>
</html>
매우 솔루션은 파이어 폭스를 제외한 모든 브라우저에서 작동 : 여기에 또한 here를 호스팅 내가 해낸 코드입니다. 파이어 폭스는 요소를 거의 position:fixed
으로 처리하여 요소의 맨 아래가 아닌 화면 맨 아래에 잠급니다 (일반적으로 화면 맨 아래에 있음). 나는이 문제를 겪고있는 다른 누군가를 찾을 수없는 것처럼 보입니다. 이것은 제가 잘못하고있는 것을 의미합니다. 나는 이것을 몇 시간 동안 망쳤지만 그 결과는 변함이 없다. 어떤 도움이라도 대단히 감사 할 것입니다.
당신이 한 것은'# right'과'.bottom' 고정 높이를주는 것입니다.'# right'는'.left'와 같은 높이가되어야합니다. –