zoukankan      html  css  js  c++  java
  • html表单——使用frameset写一个导航栏效果

    主页面:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    	<!--frameset   
    		说明:1、frameset不能潜入在body标签里面,只能嵌入在html标签里面-
    			 2、一个html页面中不能同时嵌入多个frameset标签
    			 3、若有多个frame标签,且同时未设置src属性值,则设置任何一个src属性,其他src属性也默认为该属性
    	->
    <!--	<frameset cols="200px,20%,*">
    		<frame src="#"/><frame src="#"/><frame src="#"/>
    	</frameset>-->
    	
    	<!--
    		frameborder="0“ :用来设置不显示分隔条
    		noresize="noresize"   :则设置分隔条不可拖动
    		scrolling="no"    :不显示滚动条     (要么所有的frame都设置scrolling属性,要么最后一个frame标签设置scrolling属性)
    	-->
    <!--	<frameset rows="200px,20%,*" frameborder="1" noresize="noresize"  >		
    		<frame src="http://dict.youdao.com/w/Frame/#keyfrom=dict2.top" />
    		<frame src="http://dict.youdao.com/w/Frame/#keyfrom=dict2.top"  scrolling="no"/>
    		<frame src="http://dict.youdao.com/w/Frame/#keyfrom=dict2.top" />
    	</frameset>-->
    	
    	<!--左边是页面导航栏,右边是导航栏对应的内容-->
    	<frameset cols="200px,*" frameborder="1" noresize="noresize"  >		
    		<frame src="navigationbar.html" />
    		<frame src="http://www.baidu.com" name="bodyContent"/>
    	</frameset>
    </html>
    

      

    导航页面:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    		<title>navigationbar.html</title>
    	</head>
    	<body>
    		<a href="http://www.baidu.com" target="bodyContent" >百度</a><br/><br/>
    		<a href="http://www.sina.com.cn/" target="bodyContent" >新浪</a><br/><br/>
    		<a href="http://dict.youdao.com/" target="bodyContent" >有道词典</a><br/><br/>
    		<a href="https://ssl.zc.qq.com/chs/index.html?type=1" target="bodyContent" >QQ邮箱注册</a><br/><br/>
    	</body>
    	
    </html>
    

      

  • 相关阅读:
    数据库分区、分表、分库、分片
    C# 创建Windows Service(Windows服务)程序
    C# 自定义控件容器,设计时可添加控件
    redis配置文件中常用配置详解
    将博客搬至CSDN
    MD5加密之加密字符串
    MD5加密之提取文件的MD5特征码
    安卓手机下拉状态栏的代码实现
    Android中四大组件总结
    Android中内容提供者ContentProvider的详解
  • 原文地址:https://www.cnblogs.com/1020182600HENG/p/6832608.html
Copyright © 2011-2022 走看看