Twitter Bootstrap 帮助块的可折叠元素的正确控制风格是什么?
我需要创建内联元素来控制可折叠元素。我创建了以下内容:
<label class="control-label" for="surname">Surname</label>
<div class="controls">
<input type="text" class="input-xlarge" id="surname">
<p class="help-block">Input your surname. <a data-toggle="collapse" data-target="#surname-more">More...</a></p>
<div id="surname-more" class="help-block collapse in">Additional information about surname will be here.</div>
</div>
因此,这样的元素在这里是 a
。但它看起来很糟糕(灰色文本中的蓝色链接)。是否有任何标准的 Twitter Bootstrap 类应该在这种情况下使用?
I need to create inline element to control collapsible element. I've created the following:
<label class="control-label" for="surname">Surname</label>
<div class="controls">
<input type="text" class="input-xlarge" id="surname">
<p class="help-block">Input your surname. <a data-toggle="collapse" data-target="#surname-more">More...</a></p>
<div id="surname-more" class="help-block collapse in">Additional information about surname will be here.</div>
</div>
So, such element is a
here. But it looks bad (blue link within grey text). Is there any standard Twitter Bootstrap class, which should be used in such scenario?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对链接应用
help-block
样式会使“更多...”文本变灰,但当您将鼠标悬停在链接上时,该链接仍显示深蓝色。我会编写您自己的自定义样式来处理此问题:
Applying the
help-block
style to the link makes the "More..." text gray, but the link still shows the dark blue color when you hovered over the link.I would write your own custom style to handle this: