XPages bootstrap break(small space) between table and inputBox

杀马特。学长 韩版系。学妹 提交于 2019-12-24 14:00:04

问题


I have Bootstrap 3.2.0. When I put a table into a page (.xsp) it takes so much space there.

I tried all bootstrap classes like table-condensed, table-responsive etc. for tables and input-sm, form-control and the others for inputboxes.

I created a CSS class shown below and then even if I use those classes nothing changed.

Expected result:

I'm looking for a solution on how to make whole spaces between inputBox and table to disappear.

.input-group-xs>.form-control, .input-group-xs>.input-group-addon, .input-group-xs>.input-group-btn>.btn { 
    height: 22px;
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
}

.input-xs {
    height: 22px;
    padding: 2px 5px;
    font-size: 11px;
    line-height: 1.5; 
    border-radius: 3px;
}

Thanks in advance C.A.


回答1:


I assume you are using <xp:table> ... </xp:table> for your table.

The white space within the table which you want to reduce is defined for class .table as
padding: 8px.

Change it this way:

.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,
.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td
{
    padding: 1px;
}


来源:https://stackoverflow.com/questions/35335377/xpages-bootstrap-breaksmall-space-between-table-and-inputbox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!