


Firefox displays differently than other browsers, please solve it_html/css_WEB-ITnose
Other browsers work fine:
Firefox:
HTML code:
<div class="v_out v_out_p"><div class="v_show"><div class="prev"><a href="javascript:void(0)"></a></div><div class="next"><a href="javascript:void(0)"></a></div><div class="v_cont"><ul><li index="0"><span class="pictitle">第1张</span><img class="bigpic" src="Uploads/2015424110501.jpg" alt="第1张" /><div class="picjianjie" style="clear:both">奥德盛员工风采1</div></li><li index="1"><span class="pictitle">第2张</span><img class="bigpic" src="Uploads/20154790605.gif" alt="第2张" /><div class="picjianjie" style="clear:both">奥德盛员工风采2</div></li><li index="2"><span class="pictitle">第3张</span><img class="bigpic" src="Uploads/20154790639.gif" alt="第3张" /><div class="picjianjie" style="clear:both">奥德盛员工风采3</div></li><li index="3"><span class="pictitle">第4张</span><img class="bigpic" src="Uploads/20154790715.gif" alt="第4张" /><div class="picjianjie" style="clear:both">奥德盛员工风采4</div></li><li index="4"><span class="pictitle">第5张</span><img class="bigpic" src="Uploads/20154790743.gif" alt="第5张" /><div class="picjianjie" style="clear:both">奥德盛员工风采五</div></li><li index="5"><span class="pictitle">第6张</span><img class="bigpic" src="Uploads/2015424110200.jpg" alt="第6张" /><div class="picjianjie" style="clear:both">奥德盛员工风采第6张</div></li></ul> </div> </div> <ul class="circle" style="clear:both"><li class="circle-cur"><img class="smallpic" src="Uploads/2015424110501.jpg" alt="" /></li><li class=""><img class="smallpic" src="Uploads/20154790605.gif" alt="" /></li><li class=""><img class="smallpic" src="Uploads/20154790639.gif" alt="" /></li><li class=""><img class="smallpic" src="Uploads/20154790715.gif" alt="" /></li><li class=""><img class="smallpic" src="Uploads/20154790743.gif" alt="" /></li><li class=""><img class="smallpic" src="Uploads/2015424110200.jpg" alt="" /></li> </ul> </div>
CSS code :
.v_out{width:645px;overflow:hidden;z-index:980;}.v_show{width:645px;overflow:hidden;position:relative;height:450px;z-index:990;float:left;}.v_cont{width:6450px;position:absolute;left:0px;top:0px;overflow: hidden; }.v_cont ul{float:left;text-align:center;line-height:50px;}.v_cont ul li{width:645px;height:450px;float:left;margin-top:3px;}/*---圆圈---*/.v_out_p{position:relative;overflow:visible;z-index:988;}.circle{position:relative;margin-left:40px;padding-top:25px;}.circle li{width:105px;height:60px;float:left;margin-right:10px;margin-bottom: 10px;}.circle .circle-cur{background:#f00}/*---切换---*/.prev{float:left;padding-left:0px;z-index:1000;background:url(/img/jiantou_left.png) no-repeat center;position:relative;}.next{float:right;padding-right:0px;z-index:1001;background:url(/img/jiantou_right.png) no-repeat center;position:relative;}.prev,.prev a,.next,.next a{position:relative;width:24px;height:450px;display:block;}.picjianjie{z-index:1002;padding-left:5px;color: #000000;text-align:left;width: 100%;height: 42px;line-height: 42px;position: relative;margin-top:-45px;background: url(../img/bg03.png) repeat-x;}.bigpic{width:645px;height:450px;position:relative;z-index:999;margin-top:-53px;}.smallpic{width:105px;height:60px;}.pictitle{position:relative;z-index:1003;}
Reply to discussion (solution)
Can anyone help?
Put it below
<style type="text/css"> * { margin: 0; padding: 0; } li { list-style: none; } img.bigpic { margin-top: 0px; border: none 0; display: block; } div.picjianjie { background-color: orange; } .v_cont ul li { position: relative; margin-top: 0px; } span.pictitle, div.picjianjie { position: absolute; } div.picjianjie { margin-top: 0px; bottom: 0px; }</style>
Post it below
<style type="text/css"> * { margin: 0; padding: 0; } li { list-style: none; } img.bigpic { margin-top: 0px; border: none 0; display: block; } div.picjianjie { background-color: orange; } .v_cont ul li { position: relative; margin-top: 0px; } span.pictitle, div.picjianjie { position: absolute; } div.picjianjie { margin-top: 0px; bottom: 0px; }</style>
Thank you, I posted your code, it’s a perfect solution, but I still don’t know What is the main problem! hehe.
Put it below
<style type="text/css"> * { margin: 0; padding: 0; } li { list-style: none; } img.bigpic { margin-top: 0px; border: none 0; display: block; } div.picjianjie { background-color: orange; } .v_cont ul li { position: relative; margin-top: 0px; } span.pictitle, div.picjianjie { position: absolute; } div.picjianjie { margin-top: 0px; bottom: 0px; }</style>
Hello, there is another problem, which has been solved using your code. But the title of the picture above, when opened with IE, was originally in the middle, but now it is on the left. However, 360 and Firefox browsers are still in the middle.
Another existing problem is that when the page is opened in IE, almost all the text on the page moves up a few pixels, but other browsers do not. What's going on?
For example, the comparison between the two places below
Normal
Slightly moved upwards
Normal
Slightly upward Moved
Please help me take a look, thank you. . .
Then don’t use line-height, use padding, and the top and bottom will be consistent.
The problem with the "first picture" being centered:
span.pictitle { background-color: white; width: 100%; text-align: center; } .v_cont ul { text-align: left; }

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

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

Hot Topics











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.

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

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.

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

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.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.
