一段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脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

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

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

HTML適合初學者學習,因為它簡單易學且能快速看到成果。 1)HTML的學習曲線平緩,易於上手。 2)只需掌握基本標籤即可開始創建網頁。 3)靈活性高,可與CSS和JavaScript結合使用。 4)豐富的學習資源和現代工具支持學習過程。

HTML定義網頁結構,CSS負責樣式和佈局,JavaScript賦予動態交互。三者在網頁開發中各司其職,共同構建豐富多彩的網站。

WebDevelovermentReliesonHtml,CSS和JavaScript:1)HTMLStructuresContent,2)CSSStyleSIT和3)JavaScriptAddSstractivity,形成thebasisofmodernWebemodernWebExexperiences。

GiteePages靜態網站部署失敗:404錯誤排查與解決在使用Gitee...

AnexampleOfAstartingTaginHtmlis,beginSaparagraph.startingTagSareEssentialInhtmlastheyInitiateEllements,defiteTheeTheErtypes,andarecrucialforsstructuringwebpages wepages webpages andConstructingthedom。

實現圖片點擊後周圍圖片散開並放大效果許多網頁設計中,需要實現一種交互效果:點擊某張圖片,使其周圍的...

HTML、CSS和JavaScript是Web開發的三大支柱。 1.HTML定義網頁結構,使用標籤如、等。 2.CSS控製網頁樣式,使用選擇器和屬性如color、font-size等。 3.JavaScript實現動態效果和交互,通過事件監聽和DOM操作。

如何在瀏覽器上使用JavaScript區分關閉標籤頁和關閉整個瀏覽器?在日常使用瀏覽器的過程中,用戶可能會同時�...
