html - 在 CSS 中使用较低分辨率时宽度不会改变

标签 html css width resolution

@media screen and (min-width: 300) and (max-width: 800px) {
#top {
    font-size: 200%;

}
#first {
    width: 30%;
    height: 20%;
    font-size: 120%;
    position: relative;
    top:40%;
}
#second {
    float: right;
    width: 30%;
    height: 20%;
    font-size: 120%;
    position: relative;
    top: 20%;

}
#quote {
    position: relative;
    left: 10%;
}
#bannertextb{
    font-size: 250%;
    margin-left: 0;

}
#sps {
    font-size: 180%;
    position: relative;
    top: -08%;
    margin-left: 0;
}
#class {
    margin-left: 0;
}
#greek {
    font-size: 350%;
    margin-left: 0;
}
#banner {
    height: 30%;
}

}

我希望在从手机打开时更改宽度。但这似乎没有发生。 但是当我重新调整浏览器窗口大小时,一切正常.. 您可以查看整个网站@- This link

最佳答案

减小最小和最大宽度,然后尝试。

关于html - 在 CSS 中使用较低分辨率时宽度不会改变,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21251077/

相关文章:

java - Vaadin 添加 HTML 传单 map

html - 如何制作带有标签a的下拉菜单?

javascript - 在 JQuery 中切换时导航栏消失

php 测验和显示结果对齐

html - Bootstrap 网格系统;按钮放置

javascript - Onclick 按钮在页面加载时自动运行

html - Z 索引问题

android - 以 Listview 中的百分比设置相同的 ImageView 高度和宽度

css - 如何使用CSS自动调整div的宽度?

javascript - 宽度等于动态高度平方