【发布时间】:2011-04-15 07:33:27
【问题描述】:
字段集的背景颜色在 IE 中超出边框。我有一张表,背景颜色设置为蓝色,字段集的背景颜色设置为白色。如何在 IE 中解决这个问题?
我的 CSS :
fieldset {margin:10px;}
fieldset legend {font-size: 14px; font-style:normal;}
我正在动态创建字段集。
newFieldset = document.createElement('fieldset');
newLegend = document.createElement('legend');
newLegend.innerHTML = 'Claimant Information';
newFieldset.appendChild(newLegend);
OverdueReportsSummaryDetailsTableDiv.appendChild(newFieldset);
请看附件(点击放大)
谢谢
【问题讨论】:
-
您忘记提供 HTML。
-
好一点,发个截图让我们更容易看到问题
-
您的 JavaScript 与您的问题无关。您需要使用您的 HTML/CSS 制作一个 jsFiddle 演示,显示您描述的问题:
"The fieldset’s background color gets out of border in IE"。
标签: css internet-explorer