html - CSS Windows 兼容性

标签 html css windows cross-browser

此页面的 Logo 在窗口中显示在其位置之外:

contraindicaciones.net

但是标记非常简单。 其中哪些与 Windows 不兼容?

这是一个 Windows7 + Chrome49 测试屏幕截图(在较新的 Windows 操作系统中是相同的):

test screen capture

HTML:

<div class="site-branding hidden-xs">
  <div class="s s-weblog"></div>
  <a class="site-title" href="<?= esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a>
  <p class="site-description">
    <?php bloginfo('description'); ?>
  </p>
</div>

SCSS:

.site-branding {
  text-align: center;
  .s-weblog {
    font-size: 128px;
    height: 135px;
  }
  .site-title {
    font-size: 28px;
    padding: 0;
  }
  .site-description {
    margin-bottom: 30px;
    font-style: italic;
  }
}

提前谢谢你!

最佳答案

问题似乎出在字体本身。在这里阅读 Fix custom font line-height with CSS

一个简单的解决方法是使用相对/绝对定位

关于html - CSS Windows 兼容性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36303444/

相关文章:

html - .html 和 .xhtml 扩展名有什么区别? XHTML 是一种标记语言,或者它也是一种不同的扩展

css - Bootstrap 透明导航栏

css - 字体系列默认为无衬线字体

html - 选项卡式分页帮助

html - 路径和 G 元素进入 Wordpress 中的 <p> 标签

html - 你如何让视频占据剩余的 div?

windows - 在 Windows 中更改 VB 应用程序的进程名称和发布者名称

c++ - panic : Failed to load dbcapi. dll:

c++ - WinAPI - 避免重绘窗口

html - CSS Filter 移除 H1