2017-05-11 30 views
0

我設法做中插入鏈接的iframe,但是當我插入的鏈接是有一個空的空間存在的空白,如何刪除此,任何建議來解決這個問題 enter image description hereHTML如何刪除iframe中

這是我的代碼

<iframe src="http://insage.com.my/ir/cmn/trps02/masanews_ir.aspx?Symbol=5242" style="border:1px #123 none;" name="myiFrame" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="1600px" width="1000px" allowfullscreen></iframe> 
+0

也許是因爲它的設計鏈接 – Swellar

+0

謝謝你,有沒有什麼html語法可以解決這個問題? – tang

回答

0

你插入iframe中的網頁使用引導。引導程序中的類「容器」具有相應規定的寬度來對該類內部的內容進行集中對齊的規則。 良好的網絡美學

所以當你在瀏覽器上打開頁面時,你會看到1170px的寬度和整個內容集中對齊。 而且,您已指定iFrame的寬度爲1000px,因此寬度將爲970px。

如果你仍然希望刪除空間,但不建議。您必須重寫「容器」類的規則,並將iframe的寬度調整爲970px或1170px或bootstrap框架中指定的其他網格。

.container { 
    padding-right: 0px; 
    padding-left: 0px; 
    margin-right: 0px; 
    margin-left: 0px; 
} 

此外,iFrame中現在已廢棄