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