


A piece of CSS can be displayed normally in IE, but not in other browsers_html/css_WEB-ITnose
It’s roughly like this. I put a log in a DIV at the head, then add a menu (parallel with the LOG), and give each menu a background image.
However, the text of the displayed result menu is always shifted and is not displayed under its background image, but goes behind it. The display of the background image is also abnormal. The resolution I set is 1200, which is below 1024*768. There is a part of the background image in front that cannot be displayed, and the entire form has scroll bars. Seek it high.
<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>
Reply to the discussion (solution)
Can anyone reply? .
Use TABLE, this problem won’t exist with TABLE
You’d better take your code out of the project and test it separately, or you can post it and we can help you figure out the problem. , what you sent is just a piece of code, it is not easy for us to test, it is difficult to see the problem just by looking at it.
followed by overflow:hidden

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

The role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.

HTMLisaspecifictypeofcodefocusedonstructuringwebcontent,while"code"broadlyincludeslanguageslikeJavaScriptandPythonforfunctionality.1)HTMLdefineswebpagestructureusingtags.2)"Code"encompassesawiderrangeoflanguagesforlogicandinteract

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function