问:
<html><frameset cols="120,*"><frame src="/example/html/html_contents.html"><frame src="/example/html/frame_a.html" name="showframe"></frameset></html>为什么1.<frameset cols="120,*"> 为什么写的是120呢?我看教程是按100平分一个网页的,比如50%,50%或20%,80%.120不是超过了吗?*我知道了是通配符。2name="showframe是什么意思?3为什么只有<frame src="/example/html/frame_a.html" name="showframe">,不应该写<frame src="/example/html/frame_b.html" name="showframe">和<frame src="/example/html/frame_c.html" name="showframe">吗
答:
1.这个一般主要是用在后台管理页面的,那个数值是定义右侧的宽度,占120列的宽度。也就是那种左侧是导航条,而右侧是内容的网页形式。 2.name="showframe是用来标记这个框架的,用于链接的,在链接中的target="showframe"体现。 3.都可以,只要是你想调用的都可以,当然前提条件是被调用的页面要存在且命名相同。2008-09-08 11:18
<html> <frame src="../asdocs/html_tutorials/framelist.html"> </frameset> 其中Frame_a.html为: <HTML> <HEAD> <TITLE> humorlist.html </TITLE> </HEAD> <BODY> <p><a href = "../asdocs/html_tutorials/Frame_a.html" target="showframe ">笑话一<a></p > <p><a href = "../asdocs/html_tutorials/Frame_b.html" target="showframe">笑话二<a></p> <p><a href = "../asdocs/html_tutorials/Frame_c.html" target="showframe">笑话三<a></p> </BODY> </HTML> |