It displays normally in IE, but it is too confusing to display in Firefox and Google Chrome... Please give me some advice from experts._html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:21:09
Original
1300 people have browsed it



This is the HTML inside. What is the problem...

<div id="div4" style="position:relative; width:216;">  <label id="div4" class="active" style="cursor: hand; background:url(images/left_main.jpg); width:216; height:31; text-align:center; color:#F0F0F0;padding-top:12px">报表信息</label></div><div id="div4other" position:relative; widows:216;"><label style="background:url(images/left_part.jpg); width:216; height:24; padding-top:8px"><a href="baobiao/index_2.php" target="mainFrame">入库报表</a></label><label style="background:url(images/left_part.jpg); width:216; height:24; padding-top:8px"><a href="glygl/add_admin .php" target="mainFrame">出库报表</a></label><label style="background:url(images/left_part.jpg); width:216; height:24; padding-top:8px"><a href="baobiao/confg.php" target="mainFrame">报表设置</a></label></div>
Copy after login


Reply to the discussion (solution)

<div id="div4other" position:relative; widows:216;">
Copy after login


Who is this line of code for?

Wow, it’s because ie doesn’t follow the standards, okay? ! ! !
Most layouts like yours don’t need positioning at all.
In addition, width has a value but no unit. .

It’s not the browser that’s cheating me, it’s you that’s cheating me. . .

Firefox is the standard browser

If you start with ie, you will be told that ff is not compatible

If you develop with ff first, you will be told that ie is not compatible

Why is this?

It is recommended to use FF for debugging

<div id="div4other" position:relative; widows:216;">
This is amazing

<div id="div4other" position:relative; widows:216;">
This is amazing
Please give me more details...


<div id="div4other" position:relative; widows:216;">
This is amazing
Please give me more details...
............. ........ You also use style="here" to embed styles. I have never seen the attribute "widows" before. Maybe it's because I have limited knowledge

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