我正在尝试解决我的 HTML+CSS 的问题,以删除块引用标记内的表格的缩进。此表后面还有一些文本应该缩进,所以我不能将表从 blockquote 标记中取出。
有什么建议么?
目前是这样的:
但我想删除表格的缩进,例如:
这是我生成的 HTML 代码(我们系统中的用户正在使用 TinyMCE 生成报告,然后将其转换为 PDF):
blockquote.numbered-contents::before {
counter-increment: section;
content: counters(section, ".") " ";
}
blockquote {
font-weight: bold;
}
article {
font-weight: normal;
}
<section>
<blockquote class="numbered-contents" id="734">Health, safety and environment<article class="mceEditable"> </article>
<section class="mceNonEditable">
<blockquote class="numbered-contents" data-parent_id="734" data-report_template_items_id="53" id="712">Monthly report:
<article class="mceEditable">
<table border="0" class=" tinymce-table-border-bw" width="100%">
<tbody>
<tr>
<td></td>
<td>Mngmnt</td>
<td>M&E</td>
<td>Labour</td>
<td>Carpenters</td>
<td>S/C</td>
<td>Total</td>
</tr>
<tr>
<td>Average number of personnel on site</td>
<td>1</td>
<td>6</td>
<td>2</td>
<td>5</td>
<td>4</td>
<td>18</td>
</tr>
<tr>
<td>Reportable incidents</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>Lost time incidents</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>Minor NLT incidents</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>Near Miss</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
</tbody>
</table>
<div> </div>
<div>Number of Tool Box Talks in the month: 2</div>
<div> </div>
<div>H&S Inspections: 1</div>
<div> </div>
</article>
</blockquote>
</section>
</blockquote>
</section>
谢谢。