我一直在试图获得几个伪元素在IE上工作,但它只是不让我。IE越过伪元素CSS?
它跨越了CSS并且表现得不像它那样,这有点让我感到震惊。
有人会知道我在做什么错吗?会发生什么
.newbutton {
border-radius: 50%;
width: 74px;
height: 74px;
position: relative;
background-color: black;
margin: 60px 0px 25px 17px;
overflow: visible;
}
.newbutton:before {
content: "f";
width: 80px;
height: 80px;
position: absolute;
border-radius: 50%;
z-index: -1;
top: 37px;
left: 37px;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-animation-name: fadecolor;
-webkit-animation-duration: 5s;
-webkit-animation-iteration-count: infinite;
animation-name: fadecolor;
animation-duration: 5s;
animation-iteration-count: infinite;
}
.newbutton:after {
content: "";
width: 80px;
height: 80px;
position: absolute;
border-radius: 50%;
z-index: -2;
top: -3px;
left: -3px;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#01BAE8), to(#0183D5));
}
<div class="starttour">
<div class="newbutton headerbutton">
<span class="iconhead icon-02-arrow-icon"></span>
</div>
<p>START TOUR</p>
</div>
截图:
有趣的是,它不会超出'-webkit -'位。 – BoltClock
Pfff,告诉我一下。我敢打赌,这是在故意拖延我。愚蠢的IE浏览器。 – Kairowa
无论如何,你在测试什么版本的IE,它告诉你关于文档模式/浏览器模式的内容?我从来没有真正明白为什么IE选择这种方式,但希望这些事情会提供一些线索。 – BoltClock