我想隱藏段落中的文本,但其上有一個圖像和一些文本。當我使用CSS來顯示沒有,所以所有的段落都隱藏了......但我只想隱藏文字而不是圖像。 這是代碼。只隱藏html段落中的文本
<p>
<a href="/_blog/News_and_Inspiration/post/Cooking_up_a_storm/"><img alt="" style="border: 0px solid; width: 100px; height: 150px; float: left; margin-right: 10px; margin-bottom: 10px;" src="/images/blog/Shaun-Clouston.jpg" /></a>
The executive chef of Wellington’s award winning Restaurant, Shaun Clouston is just one of the award winning New Zealand Beef and Lamb Ambassador chefs we have cooking up a storm at our Rural Women New Zealand Beef + Lamb Cooking Demonstrations over the coming months.
</p>
<p>
<img src="/images/blog/Southland Life Education Trust Car 2.jpg" alt="">
Two years ago the Southland Life Education Community Trust approached our four Southland Provincials, asking for assistance to replace their educator’s car, as the current one needed major repairs.
</p>
代碼比這個圖像預覽更好。 – SVS
@svs你沒有OCR? –
得到了jsfiddle? – starbeamrainbowlabs