iframe邊距問題解決


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body {
            margin: 0px;
            padding: 0px;
        }
        .if-top {
            display: block;
            border: none;
            width: 100%;
            height: 120px;
        }
        .if-menu {
            width: 20%;
            border: none;
        }
        .if-content {
            width: 78%;
            border: none;
        }
    </style>
</head>
<body>
    <iframe class="if-top" src="top.html"></iframe>
    <iframe class="if-menu" src="menu.html"></iframe>
    <iframe class="if-content" src="content.html"></iframe>
</body>
</html>

 

在上面的top iframe里面加上

display: block;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM