【问题标题】:I've been trying to enlarge the logo of our site when viewed on desktop but no code seems to work. I've tried different versions of this but failed在桌面上查看时,我一直试图放大我们网站的徽标,但似乎没有代码有效。我尝试了不同的版本但失败了
【发布时间】:2020-09-02 14:10:33
【问题描述】:
@media (max-width: 150px) {
.logo .standard-logo {
height: 80px;

} }

链接 - Website

我不确定要进一步调整什么,如果有任何反馈,我将不胜感激。

【问题讨论】:

    标签: css image media-queries responsive


    【解决方案1】:

    @media (max-width: 150px) 表示您的规则仅适用于浏览器窗口宽度为 150 像素或更小的情况。此外,设置徽标的高度会使其变形,因为它的宽度是有限的。 我会建议类似:

    @media (min-width: 1170px) {
      #header .logo {
        max-width: 180px;
      }
    }
    

    您可以调整媒体查询和徽标宽度。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-06
      • 1970-01-01
      • 2016-03-12
      • 1970-01-01
      • 1970-01-01
      • 2019-06-24
      • 1970-01-01
      • 2021-02-18
      相关资源
      最近更新 更多