CSS 元素 (DIV) 隐藏和 float

标签 css

<分区>

当 div 元素悬停(鼠标悬停)时,如何隐藏 上方 的表格元素

仅限 CSS**

提前致谢

最佳答案

我编辑了你的 fiddle ,使其按照你的要求工作:Fiddle . (注意类“重叠”)

<div class="overlap" style="">
test
</div>

CSS:

.overlap {
    background-color:red; top:-65px; margin:2px; display:block;
}
.overlap:hover{
    top:-160px;
    padding-top:95px;
}

关于CSS 元素 (DIV) 隐藏和 float ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16137316/

上一篇:javascript - modernizr CSS3 动画回退到 swf

下一篇:php - Ajax 内容和 Css 定位

相关文章:

css - 为什么第 nth-child 会阻止 :hover style working?

javascript - 在响应式网站上使用 Google+ 评论时如何解决视口(viewport)宽度问题?

html - 溢出 :hidden makes my content hiding behind ans z-index is not working

html - 打印媒体中 img 的最大高度属性不工作

jquery - 页面加载时自动设置页面背景颜色的动画

css - 如何在 Spiceworks 中使用 CSS 更改表格的 td 宽度?

html - iOS 设备中的 css 问题

css - 在 CSS 中的按钮中添加空格

CSS 'top' 未将元素向下推到屏幕上

css - 为什么背景图片不显示?