html 段落 隐藏,只隐藏html段落中的文本

在HTML中,一个段落包含文本和图像。尝试使用CSS隐藏段落文本,但误操作导致整个段落被隐藏。问题在于如何仅隐藏文本而保留图像可见。代码示例中提到使用了`display:none`,这会隐藏所有内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我想隐藏段落中的文本,但其上有一个图像和一些文本。当我使用CSS来显示没有,所以所有的段落都隐藏了......但我只想隐藏文字而不是图像。 这是代码。只隐藏html段落中的文本

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. 

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.

2012-07-04

asif

+3

代码比这个图像预览更好。 –

+0

@svs你没有OCR? –

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值