www.3112.net > html网页框架代码

html网页框架代码

完整范例:<!doctype html public "-//w3c//dtd html 4.01 frameset//en" "http://www.w3.org/tr/html4/frameset.dtd"><html><head><title>框架页面</title><meta http-equiv="content-type" content="text/html; charset=gb2312"><meta name="

<html> <head> <style type="text/css"> div{ border: 3px double black; margin: 5px 5px 5px 5px; } #div1{ width: 300px; height: 200px; background-color: red; } .div2{ width: 300px; height: 200px; background-color: green; } </style> </head> <body> <div id="div1"></div> <div id="div2" class="div2"></div> </body></html>

<html> <head> <title>表格</title> </head> <style> table{ border:1px black solid; border-collapse:collapse; } td{ border:1px black solid; } </style> <body> <table > <tr> <td colspan="2">框架1</td> </tr> <tr height="50px"> <td width="80px">框

你切换到代码也看看,如顶部框架,< frameset rows="80,*" frameborder="no" border="0" framespacing="0"> <frame src="1.htm" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" /> <frame src="2.htm" name="mainFrame" id="mainFrame" /></frameset> target的值就是目标框架的name的值.即在上框架页面的链接target="mainFrame".具体得看目标框架的name值是什么,target就等于什么.

<frameset rows="80,*,60" style="width:100%; height:100%; "> <frame name="Head" src="Head.htm"> <frameset cols="160,*"> <frame src="index.htm"> <frame name="Main" src="Main.htm"> </frameset> <frame src="Copyright.htm"></frameset>

随便打开一个网页,空白处点右键,选择查看源文件,会有一个txt文档出来,头尾就是基本框架 再看看别人怎么说的.

这是我亲手花了几分钟写的,望采纳哦!~~<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>test</title> </head> <style> *{margin:0px;padding:0px;} header{ width: 100%; background:#ccc; height:100px; text-align: center; }

给你最简单的上下左右4部分的框架页,里面的top.htm,bottom.htm,left.htm,right.htm,换成你自己 的页面就可以了 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE>

<html><!--一般说来分为两部分:HEAD 和 BODY [在总体标签<html>之中]--><head> <!--这里是当前页的定义:1.标题TITLE2.样式应用LINK3.脚本定义SCRIPT……--></head> <body> <!--这里的是具体的显示内容:1.HTML格式标记下的内容[FONT TABLE …]2.引用HEAD的样式CLASS3.调用HEAD的SCRIPT ……--></body> </html>

<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"> <title></title></head><body></body></html>

网站地图

All rights reserved Powered by www.3112.net

copyright ©right 2010-2021。
www.3112.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com