White space is still present around the iframe border even after after setting frameborder to 0

后端 未结 8 1329
终归单人心
终归单人心 2021-01-18 00:01

Even After setting the frameborder attribute in the iframe to 0 there is still some white space present around the iframe border (unlike the original url/link page). Is ther

相关标签:
8条回答
  • 2021-01-18 00:59

    By adding this CSS we can make iframe in full screen

    body,html
    {
        background-color:#DDEEDD;
        padding:0px;
        margin:0px;
        height:100%;
        width:100%;
        overflow:hidden;
    }
    iframe
    {
        margin:0;
        padding:0;
        border:none;
        overflow:hidden;
        background-color:#DDEEDD;
    }
    
    0 讨论(0)
  • 2021-01-18 01:05

    try this:

      <iframe bgcolor=#FFFFFF frameborder=0 vspace=0 hspace=0 marginwidth=0 marginheight=0 width=100%
       height="340" 
       src="myframe.html">
     </iframe>
    
    0 讨论(0)
提交回复
热议问题