在其他浏览器上,除了Firefox之外,网页看起来很好.即使是Internet Explorer!伪元素在文档中浮动,甚至在第一个元素之后也不会显示.有这种行为的解决方案吗?
CSS
span[property="dc:date dc:created"]::before{
position: absolute;
top: 60px;
content: '';
display: block;
background-color: #005691;
width: 60px;
height: 20px;
}
span[property="dc:date dc:created"]::after{
position: absolute;
top: 60px;
right: 0;
width: 0px;
height: 0px;
border-top: 20px solid #01416F;
border-right: 20px solid rgba(0, 0, 0, 0);
content: '';
}
Run Code Online (Sandbox Code Playgroud)
为什么这甚至可能?
console.log('13' % 2);
Run Code Online (Sandbox Code Playgroud)
1
我假设JavaScript只是自己转换字符串.我会很感激有关此行为的任何信息.