次の HTML は、Firefox 2 & 3 および IE7 で必要なように見えます。Left
左がボタン、右がボタン、真ん中のRight
文字が…真ん中!
ただし、IE6 ではLeft
ボタンの位置がずれており、中央に配置されているように見えます。
誰でも理由を提案できますか??
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Layout problem!</title>
<style type="text/css">
DIV#Footer
{
padding: 10px;
color: #fff;
background-color: #484848;
position: relative;
text-align: center;
}
DIV#Footer INPUT
{
margin: 5px 15px;
position: absolute;
top: 0px;
}
DIV#Footer INPUT.right
{
right: 0px;
}
DIV#Footer INPUT.left
{
left: 0px;
}
</style>
</head>
<body>
<div id="Footer">
<input class="left" type="button" value="Left" />
Some text in the middle
<input class="right" type="button" value="Right" />
</div>
</body>
</html>
(私はIE Developerツールを使用してこれを分析および修正しようとしましたが、役に立ちませんでした...)