Home > Web Front-end > HTML Tutorial > Firefox border reduction and misalignment problem_html/css_WEB-ITnose

Firefox border reduction and misalignment problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:12:43
Original
1119 people have browsed it

<div style="width:904px">	<div style="width:200px; float:left; border:1px solid #000000">aaa</div>	<div style="width:700px; float:right; border:1px solid #000000">bbb</div></div>
Copy after login


I should have calculated correctly, the total width is 904, but it will be misaligned when zoomed out. I don’t know why
(ctrl mouse wheel to zoom out)


Reply to discussion (solution)

<!DOCTYPE HTML><html lang=""><head>	<meta charset="gbk">	<title></title></head><body><div style="width:904px">    <div style="width:200px; float:left; border:1px solid #000000">aaa</div>    <div style="width:700px; float:right; border:1px solid #000000">bbb</div></div></body></html>
Copy after login



Why is it misplaced?

Haha, I found a few people asking this kind of question, it hurts. . .
I don’t know the reason, please give me some prawns. . .

This is not only a firefox problem, I looked at it and it also exists in IE

Well, my IE has no problem

What version of IE do you have? 360?

Try clearing the float

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template