HTML基础(四):注释、URL参数、访问路径、图片地图

1、注释:<!- -内容- ->

<body>
    <iframe src="http://www.sina.com.cn" height="300" width="800" scrolling="auto">
    本页面使用框技术
    </iframe>
    <!--iframe比frameset更加灵活,frameset需要使用一个页面来作为基础,iframe在任何页面都使用框技术--> 
</body>

2、URL参数:

<body>
    <form action="list.php" method="get">
    输入查询文章ID:<input type="text" name="id" />
    <input type="submit" value="提交" />
    </form>
</body>
image

3、访问路径

绝对路径:是从盘符开始的路径,形如C:\windows\system32\cmd.exe
相对路径:是从当前路径开始的路径,假如当前路径为C:\windows,要描述上述路径,只需输入system32\cmd.exe
根路径:最高地址。----> /image/a.png  “/”根路径
4、图片地图
<body>
    <img src="bigbang.jpg" usemap="#Map" border="0" />
    <map name="Map" id="Map">
        <area shape="rect" coords="4,20,266,309" href="http://www.baidu.com" target="_blank" alt="百度" />
        <area shape="circle" coords="385,132,103" href="http://www.csdn.com" target="_blank" alt="csdn" />
        <area shape="poly" coords="765,52,656,93,659,199,824,213,874,151,765,52" href="http://www.sina.com" target="_blank" alt="新浪" /> 
</map>
</body>

image

点击相应的区域就可以去不同的网站。

---->可以使用工具来快捷使用图片地图:

image

5、文档描点

<body>
    <h1><a name="top"></a>我是开头</h1>
    <div style="height:800px;"></div>
    <a href="#top">返回开头</a>
</body>
点击“返回开头”可以跳到最上面。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值