【问题标题】:Viewport width=device-width, initial-scale=1 not giving me full widthViewport width=device-width, initial-scale=1 不给我全宽
【发布时间】:2016-01-17 00:10:32
【问题描述】:

我在网站<meta name="viewport" content="width=device-width, initial-scale=1"> 上有这个元标记。它适用于我的桌面,但它并没有给我在移动设备中的全部宽度。我的 html 和 body 标签都有 100% 的宽度。

Link to the site

【问题讨论】:

  • 你能提供一些代码吗?
  • @Ferrrmolina 添加了网站链接
  • #mobile-menu-container 中使用width: 100vw。在 iOs 中,这会导致一些问题。看这个链接:gist.github.com/pburtchaell/e702f441ba9b3f76f587
  • @Ferrrmolina 我已将 css 更新为使用 width:100% 但仍然没有运气
  • 好的,问题是这个<h1>,也许你需要使用其他字体大小来解决这个问题:prntscr.com/9r1tej

标签: html css viewport meta


【解决方案1】:

问题是这个<h1>,也许你需要使用另一个字体大小来解决这个问题:

【讨论】:

    猜你喜欢
    • 2014-11-04
    • 2020-10-09
    • 2023-02-19
    • 2014-02-11
    • 2018-05-24
    • 1970-01-01
    • 2013-02-26
    • 2013-04-05
    • 2020-07-29
    相关资源
    最近更新 更多