【发布时间】:2013-05-28 08:15:07
【问题描述】:
我们如何在文本输入元素的右侧添加 Twitter Bootstrap 图标 icon-search?
以下尝试将所有图标都放在输入元素中,我们如何裁剪它使其只显示icon-search的图标?
当前尝试
CSS
input.search-box {
width: 180px;
background: #333;
background-image: url('/img/glyphicons-halflings-white.png');
background-position: -48px 0;
padding-left: 30px;
margin-top: 45px;
border: 0;
float: right;
}
【问题讨论】:
标签: html css twitter-bootstrap