Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我在另一个html文件中包含了一个html文件_Html - Fatal编程技术网

我在另一个html文件中包含了一个html文件

我在另一个html文件中包含了一个html文件,html,Html,在这里,我把一个HTML文件和另一个HTML文件放在一起。问题是我的表格标题 一个HTML文件,该表的内容在另一个HTML文件中。这里是包含内容的表格 很好,但当它在移动设备中响应时,我想设置两列,一列是表头列 另一个是表内容列,它应该可以与上一个表和下一个表一起导航 a.html file <div id="main" class="myadd"> <table> <tr> <td> <div>

在这里,我把一个HTML文件和另一个HTML文件放在一起。问题是我的表格标题 一个HTML文件,该表的内容在另一个HTML文件中。这里是包含内容的表格 很好,但当它在移动设备中响应时,我想设置两列,一列是表头列 另一个是表内容列,它应该可以与上一个表和下一个表一起导航

a.html file
<div id="main" class="myadd">
<table>
<tr>
<td>
<div>
<table class="table" id="book-table" cellpadding="0" cellspacing="0">
<thead class="myad_border">
<tr>
<th style="width:40px;">#</th>
<div><th>Title</th></div>
<th>Type</th>
<th>Price</th>
<th>Description</th>
<th>State</th>
<th>ZIP</th>
<th rowspan="3" style="text-align:left;width:120px;">Image</th>
<th style="text-align:left;">Action</th></tr></thead>
<tbody>{% include "classifieds_adv.html" %}</tbody>
</table></div>

*b.html files*
<tr>
<td>{{ i.id }}</td>
<td><a href="/detail/{{ i.id }}"><div class = "title_elipses accordion">{{ i.title }}</div></a>
<div class="panel" style="display: none;"><p>{{i.title}}</p></div></td>
<td><div class="dealpagetext">{{ i.type }}</div></td>
<td><div>{{ i.price }}</div></td><td>
<div class = "title_elipses accordion">{{ i.description }}</div>
<div class="panel" style="display: none;"><p>{{i.description}}</p></div>
</td>
<td><div>{{ i.state }}</div></td>
<td><div>{{ i.zip }}</div></td>
<td><div><img border="0" height="30px" src="../media/{{ i.image }}" title="{{ i.title }}"width="30px">
<img border="0" height="30px" src="../media/{{ i.image2 }}" title="{{ i.title }}"width="30px"></div>
<div><img border="0" height="30px" src="../media/{{ i.image3 }}" title="{{ i.title }}"width="30px">
<img border="0" height="30px" src="../media/{{ i.image4 }}" title="{{ i.title }}"width="30px"></div></td>
<td><button style="border: none;outline: none;color: grey;background-color: #fff;" class="show-form-update" data-url="{% url 'adv_update' i.id %}"><span style="30px;" class="glyphicon glyphicon-pencil"></span></button>
<button style="border: none;outline: none;color: grey;background-color: #fff;" class="show-form-delete" data-url="{% url 'adv_delete' i.id %}"><span class="glyphicon glyphicon-trash"></span></button></td></tr>
            
a.html文件
#
标题
类型
价格
描述
陈述
拉链
形象
行动
{%include“classifieds\u adv.html”%}
*b、 html文件*
{{i.id}
{{i.title}}

{{i.type} {{i.price}} {{i.description}} {{i.description}}

{{i.state}} {{i.zip}}