大家好,由于colspan是一个属性,我无法通过css删除,所以如果宽度达到768px,我需要通过jquery写一个媒体查询,即如果人来自手机,我们删除colspan属性所有 th 和 td,提前谢谢你。
@extends('layouts.general')
@section('content')
<table class="table table-bordered">
<thead>
<tr>
<th colspan="5" class="font-weight-bolder">МОЛОТ НЕ УНИЧТОЖЕН? ДЕТАЛЬНЫЙ РАЗБОР ТРЕЙЛЕРА ТОР: РАГНАРЁК / THOR 3: RAGNAROK
</th>
</tr>
</thead>
<tbody>
<tr>
<th colspan="5" class="font-weight-bolder">1.Описание</th>
</tr>
<tr>
<th scope="row">Условия оплаты</th>
<td colspan="5" style="border: none;">единовременно</td>
</tr>
<tr>
<th scope="row">Срок</th>
<td style="border: none;">12 месяцев</td>
</tr>
<tr>
<th>Покрываемые риски</th>
<td colspan="5" style="border: none">
МОЛОТ НЕ УНИЧТОЖЕН? ДЕТАЛЬНЫЙ РАЗБОР ТРЕЙЛЕРА ТОР: РАГНАРЁК / THOR 3: RAGNAROK
</td>
</tr>
<tr>
<th scope="row">Возрастные ограничения</th>
<td colspan="5" style="border: none">от</td>
</tr>
<tr>
<th scope="row">Лимиты ответственности</th>
<td colspan="5" style="border: none">100% суммы установленной риску</td>
</tr>
</table>
<script type="text/javascript">
</script>
</main>
@endsection
利用
window.matchMedia
PS:脚本
@push
和@stack
页脚。