背景颜色和Google Chrome的问题 [英] Issue with background color and Google Chrome

查看:138
本文介绍了背景颜色和Google Chrome的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候我会在Chrome中发现背景故障。我没有得到这个错误与任何其他浏览器。

Sometimes I get a broken background in Chrome. I do not get this error with any other browser.

这是负责正文背景颜色的简单CSS行:

This is the simple CSS line responsible for the background color of body:

body 
{
   background: black;
   color: white;
   font-family: Chaparral Pro, lucida grande, verdana, sans-serif;
}

这正是我得到这个问题。我点击Gmail电子邮件中包含的链接,发现错误(无背景)。然后刷新页面,背景颜色完全。

This is exactly how I get this problem. I click a link included in an Gmail's email and I get something wrong (no background). I then refresh the page and the background is colored completely.

如何解决这个问题?

推荐答案

从未听说过。尝试:

html, body {
  width: 100%;
  height: 100%;
  background-color: #000;
  color: #fff;
  font-family: ...;
}

这篇关于背景颜色和Google Chrome的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆