これは非常に奇妙ですが、次の html と css を確認してください。table と tableWrapper を ID が定義された要素として残している限り、これは問題なく機能します。
それらをクラスにしようとすると (css で # を . に変更)、html 要素の id を class に変更すると、サークル クラスは tableWrapper 内に含まれなくなります (境界を越えて拡張されます)。何かがIDであるかクラスであるかがレイアウトに影響を与える可能性があるとは思っていなかったので、私は本当に驚いていますが、これはIE10とGoogle Chrome v25の両方で発生しています。
この特定の問題の解決策を探しているわけではありません。私は理解を求めており、うまくいけば、それが発生する理由と、これに関して私が期待できることを説明するw3cドキュメントへのリンクを探しています。
<html>
<head>
<style>
.circle{
background-color:red;
border-radius:50%;
height:90%;
width:100%;
colore:white;
top:7%;
position:absolute;
left:0px;
}
.innerCircle{
border-radius:50%;
background-color:white;
position:absolute;
top:12%;
z-index:2;
left:5%;
height:80%;
width:90%;
}
#navBar{
background-color:black;
color:white;
width:100%;
height:7%;
}
#table{
height:550px;
border:solid 1px black ;
width:500px;
position:absolute;
top:0px;
}
#tableWrapper{
height:90%;
width:100%;
}
</style>
</head>
<body>
<div id="table">
<div id="navBar">
Room info
</div>
<div id="tableWrapper">
<div class="circle">
</div>
<div class="innerCircle">
</div>
</div>
</div>
<input type="text" id="xval" style="float:right" />
<input type="text" id="yval" style="float:right" />
</body>
</html>