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
WBOYOriginal
2016-06-24 12:12:431112browse

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


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>



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

Statement:
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