CSS实现“大于号”或“小于号”箭头
CSS实现大于号箭头,而不是直接使用键盘上的尖括号“>”
代码如下:
.goBack:before { content: " "; display: inline-block; height: 10px; width: 10px; border-width: 2px 2px 0 0; border-color: #000; border-style: solid; -webkit-transform: matrix(-0.71, 0.71,0.71, 0.71, 0, 0); transform: matrix(-0.71, 0.71, 0.71, 0.71, 0, 0); position: absolute; }
在这个方法中,是用到了matrix这个CSS3的属性,对于这个属性,可以参考理解CSS3 transform中的Matrix(矩阵)这篇文章。