簡體   English   中英

Chrome 和 Firefox 之間的 HTML 和 CSS 不同

[英]HTML and CSS different between Chrome and Firefox

我有以下 HTML

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

和 CSS

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

讓我抓狂的是它們在 Firefox 和 Chrome 之間的布局方式略有不同。 在 Chrome 中,它們是我放置它們的地方。 在 Firefox 中,表格將表格上下(分別)向上和向下推了幾個像素。 使我抓狂。 任何人都知道如何阻止它? (不能告訴你關於 IE 的原因,我不會讓你感到厭煩。)

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

在你的 CSS 中

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM