twitter-bootstrap 如何将 <caption> 表中的文本左对齐?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14786963/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How align text in <caption> table to the left?
提问by Leo Loki
Good day.
再会。
Code:
代码:
<table class="table table-hover table-bordered">
<caption class="pull-right">Pays</caption>
<thead>
What class in bootstrap.css would align text in <caption>to the left?
bootstrap.css 中的哪个类会将文本<caption>向左对齐?
If may give me link on full description format text in <caption>
如果可以给我完整描述格式文本的链接 <caption>
回答by David Taiaroa
As of Bootstrap 2.3 released Feb 7th, there is now a built-in class to do this: see http://jsfiddle.net/panchroma/PjZqE/
自 2 月 7 日发布的 Bootstrap 2.3 起,现在有一个内置类来执行此操作:请参阅http://jsfiddle.net/panchroma/PjZqE/
HTML
HTML
<table class="table table-hover table-bordered">
<caption class="text-left">Caption Left</caption>
See http://blog.getbootstrap.com/2013/02/07/bootstrap-2-3-released/for full details of all the new features
有关所有新功能的完整详细信息,请参阅http://blog.getbootstrap.com/2013/02/07/bootstrap-2-3-released/

