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>
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>
点击相应的区域就可以去不同的网站。
—->可以使用工具来快捷使用图片地图:
5、文档描点
<body> <h1><a name="top"></a>我是开头</h1> <div style="height:800px;"></div> <a href="#top">返回开头</a> </body>
点击“返回开头”可以跳到最上面。