在IE9中隐藏Iframe中的垂直滚动条

时间:2021-05-26 20:31:05

I have to embed a iframe within one of the rows of the table.I am able to do it but the problem I am facing is that the iframe is coming with a vertical scroll bar. I tried to find the solutions and included every bit of css I could to remove the scrollbar but still not able to do so. I am using IE9.

我必须在表格的一行中嵌入一个iframe。我能够做到,但我面临的问题是iframe带有一个垂直滚动条。我试图找到解决方案,并包括我可以删除滚动条的所有css,但仍然无法这样做。我正在使用IE9。

$('<tr id = "pqr" ><td colspan="8">' + '<iframe src="../../priceBand3/views/priceBand.html" id="IframeId" style="width:1100px;overflow-y:hidden !hidden;scrolling:no;seamless:seamless"></iframe>' + '</td></tr>');

1 个解决方案

#1


scrolling is not a style attribute but an attribute of iframe itself.

滚动不是样式属性,而是iframe本身的属性。

$('<tr id = "pqr" ><td colspan="8">' + '<iframe src="../../priceBand3/views/priceBand.html" id="IframeId" width="1100" scrolling="no" seamless></iframe>' + '</td></tr>');

#1


scrolling is not a style attribute but an attribute of iframe itself.

滚动不是样式属性,而是iframe本身的属性。

$('<tr id = "pqr" ><td colspan="8">' + '<iframe src="../../priceBand3/views/priceBand.html" id="IframeId" width="1100" scrolling="no" seamless></iframe>' + '</td></tr>');