Bootstrap 4 为什么td大小在我的引导表中变得如此广泛?

Bootstrap 4 为什么td大小在我的引导表中变得如此广泛?,bootstrap-4,Bootstrap 4,我有一个引导表,其中包含一些元素: <table class="table"> <thead> <tr> <h5>Orders from Restaurant</h5> </tr>

我有一个引导表,其中包含一些元素:

                <table class="table">
                    <thead>
                        <tr>
                            <h5>Orders from Restaurant</h5>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td class="pr-0">
                                <img src="../../../storage/images/food/sharshara/appetizer_wing_preview.jpg"
                                    height="100px" class="img-thumbnail">
                            </td>
                            <td>
                                <h4 class="">Chicken wings</h4>
                                <p>No sauce, extra dust</p>
                                <div class="float-right">
                                    <div class="input-group input-group-sm" style="width: 100px">
                                        <div class="input-group-prepend">
                                            <button class="btn btn-danger" type="button" id="button-addon1">
                                                <i class="fa fa-minus" aria-hidden="true"></i>
                                            </button>
                                        </div>
                                        <input type="text" class="form-control text-center" value="1"
                                            aria-describedby="button-addon1">
                                        <div class="input-group-append">
                                            <button class="btn btn-success" type="button" id="button-addon1">
                                                <i class="fa fa-plus" aria-hidden="true"></i>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
但由于某种原因,我的表列变宽了,我尝试在css和td参数中更改宽度,但没有任何帮助。
有几件事需要解决

使用宽度:1%缩小列宽以适合图像 不要使用img缩略图,因为这样会缩小图像 HTML


这就是桌子的工作原理。。。您对列宽的控制较少。你想干什么?最小化列宽以适合图像?是的,我正在尝试使列宽适合图像大小
   <tbody>
        <tr>
            <td class="pr-0" style="width:1%">
                <img src="..." />
            </td>
            <td>
                ..
            </td>
        </tr>
    </tbody>