Tom*_*ies 3 css internet-explorer background-image
我想分层背景图片.CSS使这很简单,但IE在IE 9之前不支持多个背景图像.显然有一种方法可以用JQuery做到这一点,但如果我理解正确,我们必须让用户下载一个库 - 我可能会误解,如果是这样,请告诉我.
还有其他方法可以在IE 7和8中分层背景吗?
你绝对可以在旧版IE中做到这一点.您需要下载css3Pie库.完成后,在你要设置背景属性的css中,你会像这样使用它:
#my-element
{
-pie-background:url(image.png) 0 0 no-repeat, url(image2.png) bottom repeat-x;
behavior: url(path/to/PIE.htc);
}
Run Code Online (Sandbox Code Playgroud)
这是文档的链接.
| 归档时间: |
|
| 查看次数: |
3778 次 |
| 最近记录: |