Is it possible to have two background images? For instance, I'd like to have one image repeat across the top (repeat-x), and another repeat across the entire page (repeat), where the one across the entire page is behind the one which repeats across the top.
I've found that I can achieve the desired effect for two background images by setting the background of html and body:
background: url(images/bgtop.png) repeat-x;
Is this "good" CSS? Is there a better method? And what if I wanted three or more background images?
以上就是Can I have multiple background images using CSS?的详细内容，更多请关注web前端其它相关文章！