我剛剛在ExtJS框架中遇到了IE6的顯示故障。 - 希望有人能指出我正確的方向。IE 6中Ext.Panel bbar的寬度問題
在以下示例中,面板的bbar顯示爲比它所連接的面板(左對齊)窄2個字符,在Firefox中顯示爲與面板相同的寬度。
任何人都可以提出如何解決這個問題嗎?
我似乎能夠通過在ems中指定面板的寬度或像素中的填充來解決問題,但我認爲它會按照我在下面的方式工作。
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css"/>
<script type="text/javascript" src="ext/ext-base.js"></script>
<script type="text/javascript" src="ext/ext-all-debug.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
var main = new Ext.Panel({
renderTo: 'content',
bodyStyle: 'padding: 1em;',
width: 500,
html: "Alignment issue in IE - The bbar's width is 2ems less than the main panel in IE6.",
bbar: [
"->",
{id: "continue", text: 'Continue'}
]
});
});
</script>
</head>
<body>
<div id="content"></div>
</body>
</html>