我的佈局有些問題。當我放大到100%時,它在我的電腦上看起來不錯。但是當我放大或縮小布局中斷時。我嘗試了幾種方法來封裝佈局,但迄今爲止它無法工作。由於我需要佈局來響應,任何幫助表示讚賞。HTML CSS - 縮放時佈局中斷
HTML:
<body>
<div class="low_wrapper">
<div id="intro" class="category">
<p><span class="category_description"><h1>Intro</h1></span></p>
<div class="low_info_header" >head</div>
<div class="low_info_element_big"></div>
<div class="low_info_element_big"></div>
<div class="low_info_header" >head</div>
</div>
<div id="women" class="category">
<h1>Women</h1>
<div class="low_info_header" >head</div>
<div class="low_info_element_big"></div>
<div class="low_info_element_big"></div>
<div class="low_info_header" >head</div>
</div>
</div>
</body>
CSS:
body{
margin: 0 0 0 0 ;
}
.category h1{
float:left;
width:940px;
font-family:'Open Sans';
}
.low_wrapper{
position:absolute;
margin-left:30px;
margin-top:30px;
position:absolute;
}
#low_info{
margin: 0 0 0px 33px;
width:940px;
background-color: #ccc;
float:left;
}
.low_info_header{
width:940px;
height:120px;
background-color:#FF0A83;
float:left;
position:relative;
}
.low_info_element_big{
height:400px;
width:460px;
background-color:#FF0A83;
margin-top:10px;
margin-right:20px;
margin-bottom:10px;
float:left;
position:relative;
}
首先所有當你要做出反應的時候,大多數人都會使用'%',我不知道你做出了什麼樣的反應,我希望你不會期望這種流動性脫離這個 –
你最好看看在媒體查詢如果你想響應。 – Albzi
不,我不期待流動性。我只是不希望元素在縮放時浮動。 – Goot