【发布时间】:2012-07-26 00:37:24
【问题描述】:
font-awesome 中似乎没有输入类型“提交”的类。是否可以使用 font-awesome 中的某些类进行按钮输入?我在我的应用程序中为所有按钮(实际上与 twitter-bootstrap 中的“btn”类链接)添加了图标,但无法在“输入类型提交”上添加图标。
或者,如何使用此代码:
input#image-button{
background: #ccc url('icon.png') no-repeat top left;
padding-left: 16px;
height: 16px;
}
html:
<input type="submit" id="image-button">Text</input>
(我取自 HTML: How to make a submit button with text + image in it?)字体真棒?
【问题讨论】:
标签: twitter-bootstrap twitter-bootstrap-rails font-awesome