You can use this code to make a fixed background layer to hack into this problem.
#background_wrap {
z-index: -1;
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-size: 100%;
background-image: url('xx.jpg');
background-attachment: fixed;
}
And put <div id="background_wrap"></div>
into <body></body>
<body>
<div id="background_wrap"></div>
</body>
Related Contents:
- iPad Safari scrolling causes HTML elements to disappear and reappear with a delay
- How do you get the footer to stay at the bottom of a Web page?
- CSS – Equal Height Columns?
- How to place two divs next to each other?
- How to get div height to auto-adjust to background size?
- How to style HTML5 range input to have different color before and after slider?
- Is there a way to make a child DIV’s width wider than the parent DIV using CSS?
- Advantages of using display:inline-block vs float:left in CSS
- Footer at bottom of page or content, whichever is lower
- Align elements side by side
- How to make a floated div 100% height of its parent?
- 2 column div layout: right column with fixed width, left fluid
- Is there a way to word-wrap long words in a div?
- Format text in a ?
- How can I center into a div?
- Is float for layout bad? What should be used in its place?
- Show Child Div within Hidden Parent Div
- Font Awesome not working, icons showing as squares
- How do I style the HTML5 form validation error messages with CSS?
- How to make fixed header table inside scrollable div?
- How to create equal height columns in pure CSS [duplicate]
- xHTML/CSS: How to make inner div get 100% width minus another div width
- How to display a reverse-ordered list in HTML?
- How do I right align div elements?
- SPAN vs DIV (inline-block)
- CSS values using HTML5 data attribute [duplicate]
- How to add a scrollbar to an HTML5 table?
- Right to Left support for Twitter Bootstrap 3
- How can I ensure that text is inside rounded div?
- Align two inline-blocks left and right on same line
- Overflow to left instead of right
- Internet Explorer z-index bug?
- Which HTML5 reset CSS do you use and why? [closed]
- How to make a element expand or contract to its parent container?
- how to rotate text left 90 degree and cell size is adjusted according to text in html
- Webkit CSS to control the box around the color in an input[type=color]?
- Add a text suffix to
- Proper way to apply CSS to HTML5 custom elements
- Change an HTML input’s placeholder color with CSS
- What is the current state of the “scoped” attribute for the style element in HTML5?
- How to center absolute div horizontally using CSS?
- How to get the scroll bar with CSS overflow on iOS
- CSS: How to align vertically a “label” and “input” inside a “div”?
- Make outer div be automatically the same height as its floating content
- Nested rows with bootstrap grid system?
- How to set height property for SPAN
- Align text to the bottom of a div
- How to display and hide a div with CSS?
- Set div height equal to screen size
- Fading out text at bottom of a section with transparent div, but height stays under section after overlaying div