Bootstrap/Stylus - 使表格列尽可能小

Dus*_*tin 6 html css stylus twitter-bootstrap angularjs

我正在练习使用Bootstrap使我的表在我正在创建的搜索列表上响应,问题是我想要制作的两个列尽可能小而不是相同大小.在下图中,您可以看到日期和链接占用了他们需要的更多空间.我该怎么办呢?提前致谢!

标题和链接太大了

HTML(剪辑):

<div class="table-responsive">
    <table class="table table-striped table-hover table-bordered table-condensed">
        <tbody>
            <tr class="active" ng-repeat="s in results">
                <!-- <td class="hidden-xs hidden-sm">{{$index}}</td> -->
                <td class="hidden-xs hidden-sm">{{s.provider}}</td>
                <td>{{s.title}}</td>
                <td>{{s.date}}</td>
                <td class="hidden-xs hidden-sm">{{s.cat}}</td>
                <td><a href="{{s.link}}">D/L</a></td>
            </tr>
        </tbody>
    </table>
</div>
Run Code Online (Sandbox Code Playgroud)

手写笔:

table
    table-layout fixed
    word-wrap break-word
Run Code Online (Sandbox Code Playgroud)

Nic*_*o O 7

设置table-layout: auto;应该做的伎俩.

这是一个演示:http://jsfiddle.net/NicoO/m3QWJ/1/

  • 不起作用,在这里它是怎样的,http://smartcities.tech/sca/?ol = project_23 (3认同)