我有这段代码,它使背景图像出现在 CSS 蒙版下。
.test-splash {
height: 1000px;
width: 1000px;
display: block;
-moz-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
transform: translate(11%, -12%);
-webkit-mask: url("http://www.clipartbest.com/cliparts/aTq/9Er/aTq9ErbTM.svg");
mask: url("http://www.clipartbest.com/cliparts/aTq/9Er/aTq9ErbTM.svg");
-webkit-mask-image: url("http://www.clipartbest.com/cliparts/aTq/9Er/aTq9ErbTM.svg");
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: center;
background-image: url(http://wemedia.com/wp-content/uploads/2008/12/istock_dandelionlarge.jpg);
background-position: 0 0;
background-position-x: center;
background-repeat: no-repeat;
z-index: 28;
}
和 html
<div class="test-splash"></div>
这是一个 jsbin,显示了我想要实现的目标
http://jsbin.com/lunoxo/1/edit?html,css,输出
它在 webkit 和 mozilla 浏览器中运行良好,但在 IE 10 中运行良好。我需要做什么才能使其在该浏览器中运行?