我有一个HTML代码,其中我只想隐藏文本部分,但是它并没有被包含在任何标签内。以下是一个例子:
<div class="content">
Give comfortable and durable place to work with a desk.
Lock the center drawer and all of the drawers lock,
keeping your files and supplies secure.
<table cellpadding="4" cellspacing="0">
<tbody>
<tr>
<th align="right">Available Options:</th>
<td>Desktop Color: Fusion Maple, Gray Nebula...</td>
</tr>
<tr>
<th align="right">Book Box Construction:</th>
<td>Not applicable</td>
</tr>
</tbody>
</table>
</div>
我该怎样在不更改HTML的情况下隐藏上面的“给予舒适耐用”的部分呢?我希望可以通过CSS,如果必要的话,再使用Javascript进行操作。仅通过CSS实现将是完美的方案。有谁能提供帮助吗?
p
或span
中,你想要隐藏所有内容吗? - jeroen