gpt4 book ai didi

javascript - 在显示器 :none block 内显示特定元素

转载 作者:行者123 更新时间:2023-11-28 14:36:16 24 4
gpt4 key购买 nike

<分区>

我的代码:

p{
display: none;
position: relative;
}

p i{
width:25px;
height:25px;
border-radius: 50%;
position: absolute;
top: 0;
cursor: pointer;
left: 0;
background: pink;
display:inline-block!important;
}
<p> <i></i> I must be disappeared </p>

是否可以在 display:none 中显示元素? block

有没有其他方法可以显示 <i> 只可见而不是非标记文本“我必须消失”?

PS:我不想为文本“我必须消失”添加任何其他标签

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com