如何防止 table 在调整大小时溢出其封闭的 div?

How to prevent a table from overflowing its enclosing div on resize?

我有一个 table 定义使用 bootstrap 3 和一些自定义 css。当我调整浏览器 window 大小时,它最终溢出 table 超出封闭 div 的宽度,如下图所示。我正在使用 IE,开发人员工具显示没有影响此行为的计算 table 属性。我还检查了 trtd 动态计算的属性,但仍然没有找到导致此行为的罪魁祸首。

任何人都可以阐明可能引发此问题的设置吗?

<div class="pad-top pad-side">
    <div class="row">
        <div class="col-lg-3">
            <div class="panel panel-default" ng-show="{{reportData.PnlStatistics != undefined}}" style="height: 380px">
                <div class="panel-heading">
                    <label>Expected In-Sample PnL Statistics</label>
                </div>
                <div class="panel-body" style="padding-top: 5px;">
                    <table class="table table-x-condensed table-striped table-hover table_nowrap" id="pnlStatisticsTable" st-safe-src="pnlStatistics"
                           st-table="displayedPnlStatistics">
                        <thead>
                            <tr>
                                <th style="width: 60%;" id="name">Name</th>
                                <th style="width: 20%;" id="daily">Daily</th>
                                <th style="width: 20%;" id="optimal">Optimal</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="data in displayedPnlStatistics">
                                <td style="width: 60%; padding-top: 0px; padding-bottom: 0px;">{{data.name}}</td>
                                <td style="width: 20%; padding-top: 0px; padding-bottom: 0px;">{{data.DailyHedge}}</td>
                                <td style="width: 20%; padding-top: 0px; padding-bottom: 0px;">{{data.OptimalHedge}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

我找到的最佳解决方案是修改封闭的 div 样式并设置最小宽度。这可以防止封闭的父级 div 缩小到内容大小以下并且效果很好。

<div class="col-lg-3" style="min-width: 350px;">
    ...
</div>