Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 设置重复控制中引导响应表的列宽_Html_Twitter Bootstrap_Xpages - Fatal编程技术网

Html 设置重复控制中引导响应表的列宽

Html 设置重复控制中引导响应表的列宽,html,twitter-bootstrap,xpages,Html,Twitter Bootstrap,Xpages,我有一个repeat控件,我想为每一行设置一个引导响应表。现在看起来是这样的: 问题是,我想设置列宽,使它们排列得更好。我试着做一个两行的网格,但是两行很好地折叠了,但是数据不在标签下面。我尝试过class=width:200px,或者在div中也使用了%,但似乎没有效果。如果添加到的值中,则类似于wise 我会满足于网格或响应表解决方案。 我的代码如下所示: <div class="table-responsive"> <table

我有一个repeat控件,我想为每一行设置一个引导响应表。现在看起来是这样的:

问题是,我想设置列宽,使它们排列得更好。我试着做一个两行的网格,但是两行很好地折叠了,但是数据不在标签下面。我尝试过class=width:200px,或者在div中也使用了%,但似乎没有效果。如果添加到的值中,则类似于wise

我会满足于网格或响应表解决方案。 我的代码如下所示:

<div class="table-responsive">
                    <table class="table  table-bordered table-condensed " style="width:900px">
    <thead>
        <tr >
            <th class="width:150px">Label</th>
            <th class="width:250px">Default Approvers</th>
            <th class="width:75px">Auto Process</th>
            <th class="width:75px">Routing</th>
            <th class="width:75px">Post Approval</th>
            <th class="with:75px">Post Denial</th>
            <th class="width:50px">Notify Late</th>
        </tr>
    </thead>
    <tbody>
       <tr>
          <td>
.
.
.
</tbody>
第一:使用类属性设置样式值。如果您更改为样式,那么它应该会起作用。
不过我建议你使用colgroup

我就知道!有时,显而易见的东西隐藏在显而易见的地方!