简体   繁体   English

如何在不更改bootstrap.css文件的情况下管理bootstrap列的宽度?

[英]How to manage width of bootstrap columns without changing the bootstrap.css file?

I am trying to place my elements inside a bootstrap row (inside columns) to fit my needs, however, I faced with problems. 我试图将我的元素放在引导行(内部列)中以满足我的需要,但是,我遇到了问题。 The column width is 97px approx. 列宽约为97像素。 for large screens. 用于大屏幕。 What should I do, to place inside such a column a control element (date picker or button) that oversizes the column width? 我应该怎么做才能在这样的列中放置一个控制元素(日期选择器或按钮),以增大列的宽度? The only options is to override standard bootstrap styles (generate new css) or merge several columns? 唯一的选择是覆盖标准的引导程序样式(生成新的CSS)或合并几列? What other options do I have? 我还有什么其他选择?

        <div class="row">
        <div class="col-xs-1">
            <input type="checkbox" /> /* How han I change the margine between elements?*/
            <div class="arrow-down">
            </div>
        </div>
        <div class="col-sm-3">
            <!--- Date Time Picker control-->
        </div>
        <div class="col-xs-4">
            <div class="glyphicon glyphicon-time">7 h 49 min</div>
        </div>
        <div class="col-xs-2">
            <button type="button" class="btn btn-default btn-md btn-block">Add work time</button>
        </div>
        <div class="col-xs-2">
            <button type="button" class="btn btn-default btn-md btn-block">Add break</button>
        </div>
    </div>

在此处输入图片说明

您可以在指向自举程序CSS的链接之后的HTML标头部分的<style>中添加样式,或使用内联样式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM