http://www.sohtanaka.com/web-design/facebook-style-footer-admin-panel-part-1/ 튜토리얼을 통해 이동하여 고정 톱 바를 만들었습니다 (페이스 북, 트위터, techCrunch 및 다른 인기있는 사이트와 마찬가지로). 그러나 바가 ZOOM에서 실패합니다 .위치 : 고정 - 콘텐츠가 Zoom
다음은 그 의미의 예입니다. - http://rtabl.es/designingforstartups - 링크를 확대하면 오른쪽의 내용이 화면에서 사라지는 것을 볼 수 있습니다. 같은 일이 내게 일어나고, 나는 내용이 줌에 사라 싶지 않다 .. 여기
는 테스트 코드의 자습서를 따라하고position:fixed
과 내용이
float:left
로
position:relative
이 컨테이너 준 - 궁금을 어디에서 잘못 됐어.
코드 -
<html>
<style type="text/css">
#Contianer{
position: fixed;
height: 35px;
width: 100%;
z-index: 9999;
color: white;
background-color: #474747;
}
.x{
float: left;
text-align: center;
position: relative;
line-height: 35px;
border:1px solid white;
}
#a{
width:20%;
text-align: left;
min-width: 100px;
}
#b{
width:20%;
min-width: 100px;
text-align: left;
height: 35px;
display: table-cell;
}
#c{
min-width: 200px;
width:40%;
}
#d,#e{
min-width: 50px;
width:10%;
}
body{
border:0;
margin: 0;
}
</style>
<body>
<div class="Contianer" id="Contianer">
<div id="a" class="x">
foo
</div>
<div id="b" class="x">
bar
</div>
<div id="c" class="x">
tom
</div>
<div id="d" class="x">
jerry
</div>
<div id="e" class="x">
Out
</div>
</div>
</body>
이 내용에 대해 (컨테이너) UL과 DIV의의 교체 및 선형의 노력, 힘이 작동하는 것 같다. 자습서의 하단 막대는 확대/축소 후에도 잘 유지됩니다. –
확대/축소가 가능할뿐만 아니라 브라우저 창의 크기를 더 작게 조정하면 숨겨집니다. –
예, 주위를 둘러 보거나 잘못된 위치를 알기를 원합니다. –