模态内容增长但容器大小保持不变

时间:2015-11-26 16:48:41

标签: css angularjs twitter-bootstrap-3

我正在使用angularjs显示我的模态,这是模板:

<div class="modal-lg" modal="showModal" close="cancel()">
    <div class="modal-header">
        <h4>Cihaz Listesi - {{deviceCount}}</h4>
    </div>
    <div class="modal-body">
        <div class="row">
            <div class="col-sm-12 table-responsive">
                <table st-table="devices" st-safe-src="displayedDevices" class="table table-striped table-bordered table-hover">

                    <thead>
                        <tr>
                            <th>IMEI-1</th>
                            <th>IMEI-2</th>
                            <th>MSISDN</th>
                            <th>Yeni IMEI-1</th>
                            <th>Yeni IMEI-2</th>
                            <th>Durum</th>
                        </tr>
                    </thead>

                    <tbody>
                        <tr data-ng-repeat="device in devices"  ng-click="selectRow(device.ItsRepairImeiListId)" st-select-row="device" st-select-mode="multi">
                            <td>{{device.Imei1}}</td>
                            <td>{{device.Imei2}}</td>
                            <td>{{device.Msisdn}}</td>
                            <td>{{device.NewImei1}}</td>
                            <td>{{device.NewImei2}}</td>
                            <td>{{device.Status.StatusDescription}}</td>
                        </tr>
                    </tbody>

                    <tfoot>
                        <tr>
                            <td class="text-center" st-pagination="" st-items-by-page="10" colspan="7"></td>
                        </tr>
                    </tfoot>
                </table>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button ng-show="selectedRows.length > 0" class="btn btn-success" ng-click="activateSelected()">Aktif Et</button>
        <button class="btn btn-default" ng-click="cancel()">Kapat</button>
    </div>
</div>

class="modal-lg"应该使模态变大,但这是使用它后的样子:

enter image description here

我应该怎么做才能让容器一起成长?

1 个答案:

答案 0 :(得分:0)

Türkmüsün:D表格宽度100%atatelefondayımnetolarakbakamıyorumşuonsonradöneceğimsana

.tabloSinifim { 宽度:100%;}

属性olarakta atayabilirsin。