html为什么会多两像素,html - 在Firefox和IE9中可见的表格高度差异约为2像素 - 堆栈内存溢出...

我在Mozilla / IE中遇到布局问题。 我做了两张桌子。 使用float / left right时,它们彼此相邻显示,并且效果很好。 现在唯一的问题是:IE9的右表比firefox高大约两个像素。 可能是什么问题?

在CSS的底部,您可以看到我将表与现有表/ td配置分开放置在两个不同的类中。

谢谢和问候,埃里克

我的CSS:

body {font-family: Century Gothic, Arial; text-align:center; margin: 0 auto; background-color: #CCCCCC;}

table {display:table; margin:0px 0; padding:0; border:1px solid #000000; font-size:100%;}

tr {display:table-row;}

th, td {display: table-cell; border:0px solid #000000; margin:0; padding:5px; vertical-align:top; text-align:left;}

th {background:#E7ECFD; text-align:center; color:#192666; font-weight:bold;}

hr { border: 0; color: #000000; background-color: #000000; height: 1px; width: 100%; text-align: left;}

a {color: #0B0080;}

a:hover {color: #ffffff;}

img {border:0;}

#header {font-size: 60px;color: #333333;}

#menu {width:1000px; padding-top:10px; padding-bottom:10px; text-align:left; margin-top:10px; margin-bottom:10px; }

#menu_left {text-align:left; float:left; font-weight: bold;}

#menu_right {text-align:right; font-size:75%;}

#content {width: 1000px; margin: 20px auto 0px auto; text-align:center;}

#main { float: left; height:650px; width:1000px; background-color: #CCCCCC; font-size: 14px; color: #000000; text-align:left;}

.sidebar {width:300px; height: 600px; float: right; background-color: #CCCCCC; font-size: 18px; color: #000000; margin-top:10px; padding-top:20px;}

.footer {font-size: 14px; color:#333333; text-align:center;}

table.table_register { border:1px solid #000000; padding:10px; float:left; width:50%; font-size:100%;

border-top-left-radius: 15px; border-bottom-left-radius: 15px; border-right:0px;

-moz-border-radius: 15px 0px 0px 15px;

-webkit-border-radius: 15px 0px 0px 15px;}

table.table_register2 { border:1px solid #000000; padding:10px; float:right; width:50%; font-size:100%;

border-top-right-radius: 15px; border-bottom-right-radius: 15px;

-moz-border-radius: 0px 15px 15px 0px;

-webkit-border-radius: 0px 15px 15px 0px;}

td.submit {display: table-cell; border:0px solid #000000; margin:0; padding:10px;

text-align:right; vertical-align:top; }

tr.test { height: 182px;}

我的标题:


和我的形式:

Persoonlijke gegevens

Velden met een * zijn verplicht.

Titel:Dhr.

Mevr. *

Voornaam: *
Tussenvoegsel
Achternaam: *
Postcode: *
Straatnaam *
Huisnummer: *
Woonplaats: *
Telefoonnummer: *
Telefoon mobiel: *
 
inloggegevens

Uw e-mailadres en wachtwoord heeft u nodig om toegang te krijgen tot uw gegevens.

Tevens zullen we u via dit e-mailadres op de hoogte houden van de status van uw bestellingen.

E-mailadres:
Wachtwoord:
Wachtwoord herhalen:
 
 

和页脚:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值