지금 바보처럼 느껴집니다. 어쨌든 - 페이지에는 세 개의 열이 있습니다. 오른쪽과 왼쪽은 고정 너비이므로 그대로 있어야합니다. 브라우저 창 크기를 조정할 때 가운데 열의 크기를 조정해야합니다. 나도 알아,이 힘들지 않을 거라는 걸 알지만, 그것은 단지 나를 위해 일어나지 않습니다. Heres는 html로 :창의 크기를 줄이려면 div를 얻으려고 시도하십시오.
<div class="bottom_content">
<div class="left_col">
<p>Keeping up with Commpro.Biz</p>
<div class="s_n_icons">
<img src="images/facebook.png" alt="facebook" />
<img src="images/flickr.png" alt="flickr" />
<img src="images/twitter.png" alt="twitter" />
<img src="images/youtube.png" alt="youtube" />
</div>
<p>User Name:<input ="text" size="20" name="username" value="" /></p>
<p>Password:<input ="text" size="20" name="password" value="" /></p>
<input type="button" value="submit" name="submit" />
<p><a href="#">Forgot Username or Password?</a>
<p>Click <a href="#">here</a> to sign up to receive the Commpro.Biz newsletter.</p>
<div id="twitter"></div>
</div>
<div class="center_col">
<p>What's Hot on Commpro.Biz</p>
<div class="hot_item">
hot item hot item hot item hot item hot item hot item hot itemhot item hot item
</div>
</div>
<div class="right_col">
<p>Our Partners</p>
<img src="images/BW.jpg" alt="Warren Buffett" />
<img src="images/IR_PRNewswire.gif" alt="newswire" />
<img src="images/Sysomo.gif" alt="Sysomo" />
</div>
<div id="footer">
<p>Copyright 2011 by CommproBiz</p>
</div>
</div>
와 무슨 일이 일어나고 무엇 .CSS
.left_col{
float:left;
width:190px;
height:auto;
padding-right:5px;
}
.center_col{
float:left;
width:auto;
padding:0 10px;
}
.hot_item{
width:auto;
background-color:red;
}
.hot_item a{
text-decoration:none;
}
.hot_item img{
float: right;
vertical-align: top;
}
.right_col{
float:right;
width:250px;
height:auto;
padding-left:5px;
}
.right_col img{
margin:5px;
}
는 센터 COL에 약간의 내용과 함께 세 개의 열이 행동한다는 것입니다. 일정량의 내용이 들어가면 왼쪽 열 아래로 떨어지고 오른쪽 열은 아래로 떨어집니다.
감사합니다. – Adam