Bootstrap中的字形图标只有基本圆形吗?有很多带图像的圆形,但我只想使用基本圆形。
Bootstrap中的字形图标只有基本圆形吗?有很多带图像的圆形,但我只想使用基本圆形。
像其他人所说的那样,Bootstrap团队选择不使用标准字符填充图标位置。不过,构建自己的图标相当容易。
还有一个空点,当然可以着色。
最好通过使用语义化标记或扩展 Bootstrap的排版类 与自定义CSS实现大小调整。
.one-fine-dot::before {
content: "\25cf";
}
.one-fine-red-dot::before {
content: "\25cf";
color: red;
}
.one-fine-empty-dot::before {
content: "\25cb";
}
.lead .one-fine-dot {
font-size: 1.5em;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<p>One fine dot: <span class="glyphicon one-fine-dot"></span></p>
<p>One fine red dot: <span class="glyphicon one-fine-red-dot"></span></p>
<p>One fine empty dot: <span class="glyphicon one-fine-empty-dot"></span></p>
<p class="lead">One fine lead dot: <span class="glyphicon one-fine-dot"></span></p>
<h2>One fine heading dot: <span class="glyphicon one-fine-dot"></span></h2>