Issue with background color and Google Chrome

后端 未结 22 1191
一向
一向 2020-12-08 02:06

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

This is the simple CSS line responsible for the background color of b

22条回答
  •  被撕碎了的回忆
    2020-12-08 02:57

    My Cascading Style Sheet used:

    body {background-color: #FAF0E6; font-family: arial, sans-serif }
    

    It worked in Internet Explorer but failed in Firefox and Chrome. I changed it to:

    body {background: #FAF0E6; font-family: arial, sans-serif }
    

    (i.e. I removed -color.)

    It works in all three browsers. (I had to restart Chrome.)

提交回复
热议问题