如何删除悬停的DIV?
我正在使用尾风CSS,希望用户能够在我将在左上方拥有的图标上悬停时查看背景图像。只有当用户徘徊在该图标上时,我是否可以将隐藏的类应用于DIV?
I'm using tailwind css and i want a user to be able to view the background image when they hover on an icon i'll have on the top left. Is there a way i can apply hidden class to a div only when a user hovers on that icon?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们可以为此使用伪元素:
class2 {display:none;}
class1:hover class2 {display:block; block; }
we can use pseudo elements for this:
class2{display:none;}
class1:hover class2 { display:block; }