div+iframe内联框架结构设计

304 查看

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>iframe内联框架</title>
</head>
<body style="margin:0"> <!--四周无边距-->
    <div style="width:100%;height:700px;">
        <div style="width:100%;height:10%;background:DarkGray;" align="center"><br/>
            <h2>div+iframe内联框架</h2>
        </div>
        <div style="width:25%;height:80%;background:cornsilk;float:left;">
            <ul style="list-style-type:none" align="right">
            <!-- 去掉无序列表前面的点,居中写入 -->
                <br/>
                <br/>
                <br/>
                <br/>
                <br/>
                <li>
                    <a href="http://www.baidu.com" target="myiframe">
                        <img src="images/bd.png" alt="百度">
                    </a>
                </li>
                <br/>
                <br/>
                <br/>
                <li>
                    <a href="https://www.taobao.com" target="myiframe">
                        <img src="images/tb.png" alt="淘宝">
                    </a>
                </li>
                <br/>
                <br/>
                <br/>
                <li>
                    <a href="http://www.jd.com" target="myiframe">
                        <img src="images/jd.png" alt="京东">
                    </a>
                </li>
            </ul>
        </div>
        <div style="width:75%;height:80%;float:left;" align="center">
            <iframe src="http://www.baidu.com" width="100%" height="100%" name="myiframe">
            </iframe>
        </div>
        <div style="width:100%;height:10%;background:green;clear:left;">
            <br/>
            <br/>
            &nbsp&nbsp&nbsp
            备注:本网站仅供观赏
        </div>
    </div>
</body>
</html>