一段CSS在IE里可以正常显示,在其它浏览器里不正常_html/css_WEB-ITnose
大致是这样的,我在头部的一个DIV里面放入一个log,之后加入菜单(与LOG并列的),每个菜单给一个背景图片。
但是显示出来的结果菜单文字总是移位了,没有显示在他的背景图片下面,跑后面去了。而背景图片的显示也不正常,我设置的1200的分辨率,在1024*768下面,前面有一部分背景图片显示不出来,便是整个窗体又是有滚动条的。求高看看。
<div class="Head" style=" width:1200px; height:84px; margin:0; padding:0;""> <div class="mlog" style=" width:344px; height:84px;background-image:url(../images/mlog.jpg); float:left"></div> <div class="menu" style=" width:640px; height:84px; float:left; "> <ul style=" width:640px;height:84px;float:left; margin:0; padding:0"> <li style=" width:80px; height:84px;background-image:url(../images/m1.jpg);float:left;"><a href="about.asp" ><%=Nav_2%></a></li> <li style=" width:80px; height:84px;background-image:url(../images/m2.jpg);float:left;"><a href="kctx.asp" <%if uid<>3 then response.Write"" else response.Write"class=""select"""%> ><%=Nav_3%></a></li> <li style=" width:80px; height:84px;background-image:url(../images/m3.jpg);float:left;"><a href="team.asp" <%if uid<>4 then response.Write"" else response.Write"class=""select"""%> ><%=Nav_4%></a></li> <li style=" width:80px; height:84px;background-image:url(../images/m4.jpg);float:left;"><a href="news.asp" <%if uid<>5 then response.Write"" else response.Write"class=""select"""%> ><%=Nav_5%></a></li> <li style=" width:80px; height:84px;background-image:url(../images/m5.jpg);float:left;"><a href="xyhd.asp" <%if uid<>6 then response.Write"" else response.Write"class=""select"""%> ><%=Nav_6%></a></li> <li style=" width:80px; height:84px;background-image:url(../images/m6.jpg);float:left;"><a href="jzsq.asp" <%if uid<>7 then response.Write"" else response.Write"class=""select"""%> ><%=Nav_7%></a></li> <li style=" width:80px; height:84px;background-image:url(../images/m7.jpg);float:left;"><a href="ydh.asp" <%if uid<>8 then response.Write"" else response.Write"class=""select"""%> ><%=Nav_8%></a></li> <li style=" width:80px; height:84px;background-image:url(../images/m8.jpg);float:left;"><a href="about.asp" <%if uid<>10 then response.Write"" else response.Write"class=""select"""%> ><%=Nav_8%></a></li> </ul> </div> <div class="ser" style=" width:216px;background-image:url(../images/mlink.jpg); overflow:hidden; height:84px; line-height:19px;"><a onclick="SetHome(window.location)" href="javascript:void(0)" style="color:Red;">设为首页</a><a>|</a><a onclick="AddFavorite(window.location,document.title)" href="javascript:void(0)" style="color:Red;">加入收藏</a><a>|</a><a href="contact.asp" style="color:Red;">联系我们|</a> </div> </div>
回复讨论(解决方案)
有没有人回一下啊。。
使用TABLE吧,用TABLE不会存在这个问题
你最好把你的代码从项目里抽出来单独测试下,也可以发上来,我们帮你看看问题,你发上来的只是一段代码,我们也不好测试,光看很难看出问题.
后面加个overflow:hidden
另外注意你的结尾多了个引号padding:0; "">

热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)

热门话题

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

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

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

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

本文讨论了视口元标签,这对于移动设备上的响应式Web设计至关重要。它解释了如何正确使用确保最佳的内容缩放和用户交互,而滥用可能会导致设计和可访问性问题。

本文讨论了&lt; iframe&gt;将外部内容嵌入网页,其常见用途,安全风险以及诸如对象标签和API等替代方案的目的。

HTML适合初学者学习,因为它简单易学且能快速看到成果。1)HTML的学习曲线平缓,易于上手。2)只需掌握基本标签即可开始创建网页。3)灵活性高,可与CSS和JavaScript结合使用。4)丰富的学习资源和现代工具支持学习过程。
