层与层之间的位置_html/css_WEB-ITnose
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title>Untitled Page</title> <style type="text/css"> body { font-family: 宋体, Arial; color: #000; background-color: #ffffff; } * { margin: 0; padding: 0; font-size: 12px; } .wrap { width: 298px; border: solid 1px #ccc; margin: 50px 0 0 30px; } .wrap .content { margin: 6px; } .wrap .row { height: 30px; padding-left: 20px; cursor: pointer; } .wrap a { line-height: 30px; } .wrap a.out-title { color: #313131; text-decoration: none; } .wrap a.out-title:hover { color: #f00; text-decoration: underline; font-weight: bold; } .wrap .active-row { height: 28px; line-height: 28px; border: solid 1px #eee; border-right: none; } .wrap .active-row a { font-weight: bold; } .wrap .inside-wrap { z-index: 100; background-color: #fff; height: 100px; width:204px; border: solid 1px #eee; display: none; position: absolute; left: 200px; margin-top: -31px; } .wrap .active-row .inside-wrap { display: block; } </style></head><body> <div class="wrap"> <div class="content"> <div class="row" onmouseover="this.className='row active-row'" onmouseout="this.className='row'"> <a href="javascript:void(0);" class="out-title">笔记本电脑</a> <div class="inside-wrap"> 里面内容 </div> </div> <div class="row" onmouseover="this.className='row active-row'" onmouseout="this.className='row'"> <a href="javascript:void(0);" class="out-title">笔记本电脑</a> <div class="inside-wrap"> 里面内容 </div> </div> </div> </div></body></html>
我鼠标移上去的时候,class为inside-wrap这块内容的相对位置,在IE8,firefox下是正常的,在ie6,7下就不正常
y轴不在同一水平线,请问css怎么写才能解决呢,搞了半天,搞不出来,请大侠帮忙
附加:如果上面的问题解决了,如果在class为inside-wrap这块下面铺一层iframe怎么实现呢
回复讨论(解决方案)
.wrap .row {
height: 30px;
padding-left: 20px;
cursor: pointer;
position:relative;
}
.wrap .inside-wrap {
z-index: 100;
background-color: #fff;
height: 100px;
width:204px;
border: solid 1px #eee;
display:none;
position: absolute;
left: 200px; top:0;
}
这样就好了!
.wrap .row {
height: 30px;
padding-left: 20px;
cursor: pointer;
position:relative;
}
.wrap .inside-wrap {
z-index: 100;
background-color: #fff;
height: 100px;
width:204px;
border: soli……
+11
如果下面加个ifame的,可以再帮我实现下吗?

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

公众号网页更新缓存,这玩意儿,说简单也简单,说复杂也够你喝一壶的。你辛辛苦苦更新了公众号文章,结果用户打开还是老版本,这滋味,谁受得了?这篇文章,咱就来扒一扒这背后的弯弯绕绕,以及如何优雅地解决这个问题。读完之后,你就能轻松应对各种缓存难题,让你的用户始终体验到最新鲜的内容。先说点基础的。网页缓存,说白了就是浏览器或者服务器为了提高访问速度,把一些静态资源(比如图片、CSS、JS)或者页面内容存储起来。下次访问时,直接从缓存里取,不用再重新下载,速度自然快。但这玩意儿,也是个双刃剑。新版本上线,

本文讨论了使用HTML5表单验证属性,例如必需的,图案,最小,最大和长度限制,以直接在浏览器中验证用户输入。

本文展示了使用CSS为网页中添加有效的PNG边框。 它认为,与JavaScript或库相比,CSS提供了出色的性能,详细介绍了如何调整边界宽度,样式和颜色以获得微妙或突出的效果

本文讨论了html&lt; datalist&gt;元素,通过提供自动完整建议,改善用户体验并减少错误来增强表格。Character计数:159

本文讨论了HTML&lt; meter&gt;元素,用于在一个范围内显示标量或分数值及其在Web开发中的常见应用。它区分了&lt; meter&gt;从&lt; progress&gt;和前

本文解释了HTML5&lt; time&gt;语义日期/时间表示的元素。 它强调了DateTime属性对机器可读性(ISO 8601格式)的重要性,并在人类可读文本旁边,增强Accessibilit

本文讨论了HTML&lt; Progress&gt;元素,其目的,样式和与&lt; meter&gt;元素。主要重点是使用&lt; progress&gt;为了完成任务和LT;仪表&gt;对于stati
