生活随笔
收集整理的這篇文章主要介紹了
html复习三
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
原創(chuàng)作品,允許轉(zhuǎn)載,轉(zhuǎn)載時(shí)請(qǐng)務(wù)必以超鏈接形式標(biāo)明文章 原始出處 、作者信息和本聲明。否則將追究法律責(zé)任。http://hanchaohan.blog.51cto.com/2996417/927271
1.框架的基本概念:http://www.w3school.com.cn/
?
2.框架的基本結(jié)構(gòu):
?
注意事項(xiàng):1.★框架網(wǎng)頁(yè)是沒有body的!!!!
?
<html><head> <metahttp-equiv="Content-Type"content="text/html;charset=GBK"/> <title>框架網(wǎng)頁(yè)-cols</title></head> <framesetrows="80,*"border="5"> <framename="top"src="top.html"/> <framesetcols="400,*"> <framename="left"src="http://www.baidu.com"/> <framename="right"src="http://www.google.com.hk"/> </frameset> </frameset></html>注意事項(xiàng):★如果你想讓框架網(wǎng)頁(yè)之間的邊框消失,要在frame標(biāo)簽中加上frameborder="0"這個(gè)屬性!!
?
★如果你不想框架網(wǎng)頁(yè)之間的邊框可以被隨意拖動(dòng),那么你需要再frame標(biāo)簽中加上noresize="noresize"這個(gè)屬性!
?
eg.
<html><head> <metahttp-equiv="Content-Type"content="text/html;charset=GBK"/> <title>框架網(wǎng)頁(yè)-cols</title></head> <framesetrows="80,*"border="5"> <framename="top"src="http://www.sina.com"frameborder="0"/> <framesetcols="400,*"> <framename="left"src="http://www.baidu.com"frameborder="0"/> <framename="right"src="http://www.w3school.com.cn/"frameborder="0"noresize="noresize"/> </frameset> </frameset></html>3.框架網(wǎng)頁(yè)中的超鏈接:
?
target="blank" → 新窗口
?
target="parent" → 父窗口
?
target="right" → 去框架中的某個(gè)name="right"的窗口。當(dāng)然,還可以有l(wèi)eft,top等。
?
3.當(dāng)你想在普通網(wǎng)頁(yè)中引入其他的網(wǎng)頁(yè)時(shí),可以用iframe這個(gè)標(biāo)簽!
用法:
?
<htmlxmlns="http://www.w3.org/1999/xhtml"><head> <metahttp-equiv="Content-Type"content="text/html;charset=GBK"/> <title>iframe</title></head><body> <iframesrc="http://www.baidu.com"frameborder="2"width="200"height="200"scrolling="no"/></html>它的一些屬性:
?
?
?
本文出自 “我的JAVA世界” 博客,請(qǐng)務(wù)必保留此出處http://hanchaohan.blog.51cto.com/2996417/927271
轉(zhuǎn)載于:https://www.cnblogs.com/xiao-wei-wei/archive/2012/08/19/2646305.html
總結(jié)
以上是生活随笔為你收集整理的html复习三的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。