【问题标题】:How align text in <caption> table to the left?如何将 <caption> 表中的文本向左对齐?
【发布时间】:2023-04-02 01:24:01
【问题描述】:

美好的一天。

代码:

<table class="table table-hover table-bordered">
<caption class="pull-right">Pays</caption>
<thead>

bootstrap.css 中的哪个类会将&lt;caption&gt; 中的文本向左对齐?

如果可以给我&lt;caption&gt;中完整描述格式文本的链接

【问题讨论】:

    标签: text twitter-bootstrap alignment caption


    【解决方案1】:

    从 2 月 7 日发布的 Bootstrap 2.3 开始,现在有一个内置类可以执行此操作:请参阅 http://jsfiddle.net/panchroma/PjZqE/

    HTML

    <table class="table table-hover table-bordered">
    <caption class="text-left">Caption Left</caption>  
    

    查看http://blog.getbootstrap.com/2013/02/07/bootstrap-2-3-released/了解所有新功能的完整详情

    【讨论】:

    • taiaroa 你没有看到我所有的问题。我问name class in bootstrap.css that align text in &lt;caption&gt;。原始名称类不是新创建的类。
    • 查看我的更新答案。直到两天前还没有内置类,但现在有了。
    猜你喜欢
    • 1970-01-01
    • 2011-05-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-27
    相关资源
    最近更新 更多