CSS选择问题

发布于 2025-01-19 01:45:56 字数 224 浏览 3 评论 0原文

1我只是在 CSS 中尝试悬停效果,但在选择时遇到问题另一个容器中的项目

嗯,当我检查 w3schools 时就像这样

,有很多选择器,我发现它们与我想要做的不匹配
所以 65% 我在 CSS 或 HTML 层次结构中的某些内容是错误的 [图片说明情况]

1I'm just trying Hover Effect in CSS but I'm having a problem when I select an item in another container

Well, it's like this

when I checked w3schools and there is plenty of selectors, I found them not to match with I'm trying to do
so 65% I'm wrong with something in CSS or HTML hierarchy
[image explain the situation]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧竹 2025-01-26 01:45:56

这是你的意思吗?

.color1:hover {
  color: red;
}

Is this what you mean? https://jsfiddle.net/Montinyek/ybtLg2w9/1/

.color1:hover {
  color: red;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文