该网站是utf-8,我使用并颠倒感叹号作为警告.而不是使用html代码进行上下颠倒感叹号,我使用css'内容'并使用bourban sass旋转它,输出到供应商特定的旋转.问题是:它不是跨浏览器兼容的.后备是一个右侧的感叹号,我很好......但我很想知道.有更好的方法吗?
.day:before{
content:"!";
@include transform(rotate(180deg));
display:block;
float:left;
margin-right:2%;
}
.day:after{
content:"!";
padding-left:2%;
}
Run Code Online (Sandbox Code Playgroud)
如果由于某种原因你不想写:
content: '¡';
Run Code Online (Sandbox Code Playgroud)
有字符转义序列:
content: '\a1';
Run Code Online (Sandbox Code Playgroud)