div内的边框被内容隐藏(Border inside of div get hidden by content)

编程入门 行业动态 更新时间:2024-10-22 11:06:31
div内的边框被内容隐藏(Border inside of div get hidden by content)

不确定标题是否正确解释。 我弄错了我的问题: 小提琴 。 右侧框正确显示悬停边框。 但当盒子中的内容被隐藏时。 有没有办法让边境保持在最顶层?

编辑:用CSS固定:溢出:隐藏;

Not sure if the title explains it properly. I've made a fiddle of my problem: Fiddle . The right box properly shows the border on hover. But when theres content in the box it's hidden. Is there a way I can make the border stay on top?

EDIT: FIXED IT WITH CSS: overflow:hidden;

最满意答案

图像呈现在覆盖动画的框的顶部。 如果您取出图像,您会看到悬停功能在两个框上都有效。

您可能需要为图像添加一些CSS,而不仅仅是图像所在的div。

The image is rendered on top of the box which is covering up the animation. If you take the image out you'll see that the hover functionality works on both boxes.

You probably need to add some CSS for the image instead of just the div that the image is in.

更多推荐

本文发布于:2023-07-28 19:01:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1308152.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:边框   内容   div   content   hidden

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!