下面的代码做的伎俩可能会显示在Internet Explorer中的同一行两个div:的div上的tableHeader同一线上
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<style>
th
{
border: 0px solid;
font :12px/1.3 "Lucida Grande", Arial, sans-serifw;
font-weight: bold;
padding-left: 5px;
padding-right: 5px;
background :lightgrey;
clear :both;
width: 70px;
}
.thspan
{ display: inline;
float :left;
word-wrap: break-word;
margin-right 25px;
}
.bspan
{ display: inline;
float: right;
width: auto;
}
</style>
</head>
<body>
<table>
<th>
<div class="bspan"><button id="text2"></button></div>
<div class="thspan">text1dskjsdkjfsd-sdfdsf</div>
</th>
</table>
</body>
</html>
但现在不会在Chrome和Firefox ...任何人合作一个想法为什么?
感谢
哇,那实际上工作:)。谢谢。只有一个小问题。在Internet Explorer中,按钮的右边也会有一个20px的边界(仅当文本非常长时)(在chrome和firefox中,情况并非如此)。任何想法是什么造成的? – 2012-02-03 13:58:52