首页  >  问答  >  正文

Bootstrap 无边框表格还有边框吗?

对 Boostrap 相当陌生,无法弄清楚什么可能会在我的“创建”视图上触发此行以及如何消除它。

以下是我与该领域相关的部分观点:

<h3 class="text-primary pl-3">Client Demographic Information</h3>
        <table class="table table-bordeless" style="width:100%">
            <tr>
                <td style="width: 30%">
                    <div class="form-group, mb-3">
                        <label asp-for="Incident.CaseType"></label>
                        <br />
                        @foreach (var item in Html.GetEnumSelectList<CaseType>())
                        {
                            <input type="radio" asp-for="Incident.CaseType" value="@item.Text"/>@item.Text
                        }
                    </div>
                </td>
                <td style="width: 30%">
                    <div class="mb-3">
                        <label asp-for="Incident.PIFirstName"></label>
                        <input asp-for="Incident.PIFirstName" class="form-control" />
                        <span asp-validation-for="Incident.PIFirstName" class="text-danger"></span>
                    </div>
                </td>
                <td style="width: 10%">
                    <div class="mb-3">
                        <label asp-for="Incident.PIMiddleInitial"></label>
                        <input asp-for="Incident.PIMiddleInitial" class="form-control" />
                        <span asp-validation-for="Incident.PIMiddleInitial" class="text-danger"></span>
                    </div>
                </td>
                <td style="width: 30%">
                    <div class="mb-3">
                        <label asp-for="Incident.PILastName"></label>
                        <input asp-for="Incident.PILastName" class="form-control" />
                        <span asp-validation-for="Incident.PILastName" class="text-danger"></span>
                    </div>
                </td>
            </tr>
        </table>
        <table class="table table-bordeless" style="width:100%">
            <tr>
                <td style="width: 40%">
                    <div class="mb-3">
                        <label asp-for="Incident.PIAddressCity"></label>
                        <select asp-for="Incident.PIAddressCity" id="Select1" class="form-select" asp-items="@(new SelectList(Model.DisplayCityData.OrderBy(x => x.CityName),"CityName", "CityName"))"><option value="" selected disabled>---Select Residence City---</option></select>
                    </div>
                </td>

希望有人能帮忙。谢谢!

P粉806834059P粉806834059428 天前541

全部回复(1)我来回复

  • P粉647504283

    P粉6475042832023-09-09 09:02:17

    类名有拼写错误:

    table class="table table-bordeless"

    更改为:

    table class="table table-borderless"

    回复
    0
  • 取消回复