【发布时间】:2015-01-22 10:50:01
【问题描述】:
如何在没有图像的情况下在提交按钮上放置箭头符号..
【问题讨论】:
-
他确实说没有图片
-
您好,欢迎来到 SO,请添加有关您想要的更多详细信息,因为可能有多种类型的“箭头标志”......否则您的问题将被关闭。
如何在没有图像的情况下在提交按钮上放置箭头符号..
【问题讨论】:
文本旁边的箭头,将是
TEXT →
看起来像:
文字→
从看: http://dev.w3.org/html5/html-author/charref 可以从 HTML 实体创建的符号的完整列表(由 HTML 特殊字符组成的符号)。
【讨论】:
通过使用伪元素
button{position: relative; margin: 40px}
button:before{
content: '';
position: absolute;
width: 0;
height: 0;
border-top: 10px solid transparent;
border-left: 10px solid red;
border-bottom: 10px solid transparent;
right: -20px;
top: -1px;
}
<button>ENTER</button>
或使用Character Entity Reference Chart
<button>ENTER &rtrif; </button>
【讨论】: