0
我试图让下面的输出(两个数字之间有很大的斜杠线):CSS变换porperty Safari浏览器
下面的代码工作的Firefox和Chrome,但在Safari上是行不通的。会有什么解决方法吗?
下面的代码:
HTML:
<div class="wrap">
<div class="top">4</div>
<div class="bottom">15</div>
</div>
CSS:
.top {
display: block;
float: left;
font-size: 60px;
font-weight: 700;
}
.bottom {
display: block;
float: left;
font-size: 38px;
font-weight: 700;
margin-top: 70px;
position: relative;
width: 28px;
}
.bottom:before {
border-left: 1px solid;
content: "";
height: 66px;
position: absolute;
right: 0;
top: -35px;
transform: skew(-45deg);
transform-origin: left top 0;
width: 0;
}
的jsfiddle演示: http://jsfiddle.net/pg4sxrc1/
个
您可以参考这个问题的http:/ /stackoverflow.com/questions/29864790/why-on-safari-the-transform-translate-doesnt-work-correctly –