html网页缩小之后div框移动,css – DIV在浏览器中放大和缩小时移动
我有一個以下的div結構
/* html goes here */
現在當我從瀏覽器放大或縮小時,“storeFinder”向右/向左移動……
我在網上搜索過,發(fā)現需要一個圍繞“storeFinder”的包裝器,這樣它就不會隨著< body>而移動.并指定最小寬度也可以解決問題.
在我的情況下,我已經有一個包裝div和指定min-width也dint幫助我.
在這里尋求幫助非常糟糕.
#wrapper {
background: white;
background-position: 50% 0px;
width: 984px;
margin: 0px auto 0 auto;
text-align: center;
}
#header {
width: 960px;
height: 60px;
margin: 0 5px 2px 5px;
text-align: left;
background: white;
display: block;
position: relative;
}
#storefinderdropdown {
position: absolute;
top: 8px;
float: none;
width: 270px;
height: 43px;
border: 5px solid #F1F1EF;
background: #F1F1EF;
z-index: 10;
margin: 20px 0 0 342px;
font-size: 10px;
font-weight: bold;
text-indent: 3px;
padding: 0;
}
總結
以上是生活随笔為你收集整理的html网页缩小之后div框移动,css – DIV在浏览器中放大和缩小时移动的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 计算机网络与云计算研究背景,基于云计算背
- 下一篇: 计算机科学软件工程专业大学排名,2020