是否有任何替代盒装饰中断的IE浏览器?替代盒装饰中断
我的客户需要IE的工作解决方案,但IE不支持。
.class1 {
display: inline;
padding: 32px 20px 16px;
margin-left: -20px;
background-color: #000;
-webkit-box-decoration-break: clone;
-o-box-decoration-break: clone;
box-decoration-break: clone;
}
.class2 {
color: #fff;
display: inline;
position: relative;
z-index: 40;
padding: 0;
}
<span class="class1">
<h1 class="class2">Lorem Ipsum Ipsum</h1>
</span>
您可以添加您的相关HTML来重现所需的行为吗? –
添加代码,感谢您的注意我 –
说实话,我没有看到任何使用您的代码的特殊效果。只是在黑色背景上的白色文本。将您的HTML和CSS移动到代码片段,随意编辑它。 –