HTML总述--第七讲 超链接、frameset

2018-05-10  本文已影响0人  bfx1000

文字超链接

<a href="http://www.baidu.com">百度</a>

图片超链接

<a href="http://www.baidu.com"><img title="这是搜索引擎" width="150" height="200" src="https://timgsa.baidu.com/timg?image&amp;quality=80&amp;size=b9999_10000&amp;sec=1525923267270&amp;di=ada5d7b22403a9bc30a0e61d45f18dfc&amp;imgtype=0&amp;src=http%3A%2F%2Fimg3.duitang.com%2Fuploads%2Fitem%2F201608%2F26%2F20160826185608_FQHuk.jpeg"></a>

在新窗口显示页面

 <a target="_blank" href="http://www.baidu.com">百度</a>
<a href="mailto:xxx@126.com">联系我们</a>

框架之间的链接
列:

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<frameset cols="30%,*">
    <frame></frame>
    <frame></frame>
</frameset>
</html>

行:

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<frameset rows="30%,40%,*">
    <frame></frame>
    <frame></frame>
    <frame></frame>
</frameset>
</html>

嵌套:

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<frameset cols="30%,*">
    <frame src="http://www.baidu.com"></frame>
    <frameset rows="30%,30%,*">
        <frame src="C:\\Users\\***\\Desktop\\1.html"></frame>
        <frame></frame>
        <frame src="https://www.sina.com"></frame>
    </frameset>
</frameset>
</html>
上一篇 下一篇

猜你喜欢

热点阅读