2
我想只能用css来画一个箭头导航,我写了这个代码绘制导航箭头形状的CSS
<span class="outer">
<span class="inner"></span>
</span>
与风格
.outer {
width: 40px;
height: 40px;
border: 2px solid #000;
border-radius: 30px;
display: block;
position: relative;
}
.inner {
width: 0px;
height: 0px;
border-style: solid;
border-width: 10px 15px 10px 0;
border-color: transparent #000 transparent transparent;
position: absolute;
right: 35%;
top: 24%;
}
,但我想内三角是像这样<,而不是播放按钮。我分享了我的代码JSFiddle
或者只是使用'less than'符号'<... ...以及更简单的CSS标记。 – 2014-10-18 18:46:19
@Paulie_D我本来以为这个选项不用说了。特别是因为OP在问题 – George 2014-10-18 18:49:46
中使用它,你会这么认为......但我的意思是在你的“内容”属性中......然后你可以用字体属性来设计它......不需要边框。 – 2014-10-18 18:51:08