简体   繁体   中英

Chrome Firefox HTML Display

All,

I have couple of queries with respect to displaying html:

I have a background image that is set for the <body></body> component of my HTML page using the CSS as follows:

body {  
    background: url('XYZ.jpg') no-repeat;  
    background-position: center top;  
    background-size: 100%;  
    background-color: #422102;  
    font-family: "Algerian";  
    font-size: 15pt;  
    color: #F8F8FF;  
}

For the setting above, the background image completely covers the display window in Chrome but not in Firefox. I can see the background color in Firefox.

How can I make this consistent?

The contents in both Chrome and Firefox is displayed in CAPITAL letters when I have not even set capital letters for the <body></body> section. How can I fix this?

  1. background-size is not a widely supported CSS property. Use -moz-background-size in addition to background-size to get it working in FF 3.6+. See quirksmode .

  2. You must have a text-transform: uppercase somewhere in your CSS, or your text is literally written in all caps, or you're using a font that only has capital letters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM