0
我正在试验一个位置:fixed; #宽度为100%,最大高度为50px的页眉。在大多数网页浏览器的全屏幕中,我无法保证#header中布局的内容是一致的,但是,它很可能适合页面。然而,更大的关注点在于调整其内容将会看起来完全混乱。有没有人有一种他们喜欢的方法来扩展这个内容?职位:固定; Web浏览器的缩放方法
下面是我在做
/* --- Footer/Header Area --- */
#footer {
height: 70px;
max-height: 70px;
width: 100%;
position: absolute;
background-color: #eee
}
#header {
background-color: #fff;
height: 50px;
max-height: 50px;
line-height: 45px;
width: 100%;
position: fixed;
top: 0;
float:left;
box-shadow: 2px 4px 5px #555;
}
#header img {
/* --- TOGOHERE: >>>> margin: 10px 30px 0 --- */
}
#header h1 {
display:inline-block;
font-size: 1.2em;
font-family:Courier New;
text-align: left;
}
#header h2 {
display:inline-block;
font-size: x-small;
font-family: Tahoma;
text-align: center;
padding-right:2cm;
}
#header h3 {
display:inline-block;
font-size: xx-small;
font-family: Tahoma;
text-align: center;
padding-right:2cm;
}
这是一个格式化选择器,或者我将其作为属性应用于div?我的问题有意义吗? – mhcc66
给一个div说一个类的容器,然后使用媒体查询来改变基于屏幕宽度的容器的大小 –
对不起,意味着每个大小不同大小的容器查找twitter bootstrap 3,你可以看到他们是如何做到这一点。或者只是使用该框架观看一些视频其非常有用的TB3 –