简体   繁体   中英

HTML and CSS different between Chrome and Firefox

I have the following HTML

<tr>
<td align="left">
<span wicket:id="valuenotifier">
<label name="currentValue" id="currentValue" wicket:id="currentValue" />%
</span> 
</td>
</tr>

and CSS

#currentValue {
font-size: 45px;
font-family:"Times New Roman", Times, serif;
font-style: normal;
line-height:inherit;      
}

What's driving me nuts is that they layout in slightly different way between Firefox and Chrome. In Chrome they are where I put them. In Firefox, the table pushed the table above and below up and down (respectively) by a few pixels. Driving me nuts. Anyone got an idea how to stop it? (Can't tell you about IE for reasons I won't bore you with.)

do

-moz-margin:0px; 
-webkit-margin:0px;

in your Css

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM