All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
HTML语言剖析(十一)排版标记_[Html教程]_0

Writer: 归海一刀 Article type: Programming skills(编程技巧) Time: 2014/3/30 5:19:00 Browse times: 274 Comment times: 0

HTML语言剖析(十一)排版标记_[Html教程]_0


Head photo

Go homepage
Upload pictures
Write articles

HTML语言剖析(十一)排版标记_[Html教程]
</FONT> <BR><FONT color=#000000><IFRAME></FONT> </SPAN><FONT color=#ca00ca>■ 框架概念 :</FONT><SPAN>所谓框架便是网页画面分成几个框窗,同时取得多个 URL。只 要 <FRAMESET> <FRAME> 即可,而所有框架标记 要放在一个总起的 html 档,这个档案只记录了该框架 如何划分,不会显示任何资料,所以不必放入 <BODY> 标记,浏览这框架必须读取这档 案而不是其它框窗的档案。<FRAMESET> 是用以划分框窗,每一框窗由一个 <FRAME> 标 记所标示,<FRAME>必须在 <FRAMESET> 范围中使用。如下例: </SPAN><P><SPAN><<FONT color=#ff80c0>frameset</FONT> cols="50%,*"> </SPAN><DD><SPAN><<FONT color=#0058b0>frame</FONT> name="hello" src="up2u.html"> </SPAN><DD><SPAN><<FONT color=#0058b0>frame</FONT> name="hi" src="me2.html"> <BR><<FONT color=#ff80c0>/frameset</FONT>> </SPAN><P><SPAN>此例中 <FRAMESET> 把画面分成左右两相等部分,左便是显示 up2u.html,右边则会显示 me2.html 这档案,<FRAME> 标记所标示的框窗永远是按由上而下、由左至右的次序。 </SPAN><P><SPAN>本节与 Composer 教室的【运用框架】大部分相同,只是本节增加了内容及较为详细,正 如其它篇章一样并不会提及网页制作工具,若馈下学会了 HTML 相信你亦不会选用 Composer , FrontPage 一类的工具了。 </SPAN></P></DD><FONT color=#ca00ca><FONT size=2>■</FONT> <FRAMESET> <FRAME> :</FONT><FONT color=#000000 size=2>▲Top</FONT><SPAN><FRAMESET> 称框架标记,用以宣告HTML文件为框架模式,并设定视窗如何分割。 <BR><FRAME> 则只是设定某一个框窗内的参数属性。 </SPAN><P><SPAN><FRAMESET> 参数设定: <BR>例子:<frameset <FONT color=#ff0000>rows</FONT>="90,*" <FONT color=#ff0000>frameborder</FONT>="0" <FONT color=#ff0000>border</FONT>=0 <FONT color=#ff0000>framespacing</FONT>="2" <FONT color=#ff0000>bordercolor</FONT>="#008000"> </SPAN><UL><LI type=square><SPAN><FONT color=#1b07a3>COLS="<FONT color=#ff0080>90,*</FONT>"</FONT> <BR>垂直切割画面(如分左右两个画面),接受<FONT color=#ff0080>整数值</FONT>、<FONT color=#ff0080>百分数</FONT>, <FONT color=#ff0080>*</FONT> 则代表占用馀下空 间。数值的个数代表分成的视窗数目且以逗号分隔。例如 COLS="30,*,50%" 可以 切成三个视窗,第一个视窗是 30 pixels 的宽度,为一绝对分割,第二个视窗是当 分配完第一及第三个视窗後剩下的空间,第三个视窗则占整个画面的 50% 宽度 为 一相对分割。<FONT color=#fbb339>您可自己调整数字</FONT>。 </SPAN><LI type=square><SPAN><FONT color=#1b07a3>ROWS="<FONT color=#ff0080>120,*</FONT>"</FONT> <BR>就是横向切割,将画面上下分开,数值设定同上。唯 COLS 与 ROWS 两参数尽量 不要同在一个 <FRAMESET> 标记中,因 Netacape 偶然不能显示这类形的框架,尽 采用多重分割。 </SPAN><LI type=square><SPAN><FONT color=#1b07a3>frameborder="<FONT color=#ff0080>0</FONT>"</FONT> <BR>设定框架的边框,其值只有 0 和 1 , 0 表示不要边框, 1 表示要显示边框。(避 免使用 yes 或 no ) </SPAN><LI type=square><SPAN><FONT color=#1b07a3>border="<FONT color=#ff0080>0</FONT>"</FONT> <BR>设定框架的边框厚度,以 pixels 为单位。 </SPAN><LI type=square><SPAN><FONT color=#1b07a3>bordercolor="<FONT color=#ff0080>#008000</FONT>"</FONT> <BR>设定框架的边框颜色。</SPAN> <LI type=square><SPAN><FONT color=#1b07a3>framespacing="<FONT color=#ff0080>5</FONT>"</FONT> <BR>表示框架与框架间的保留空白的距离。 </SPAN></LI></UL><P><SPAN><FRAME> 参数设定: <BR>例子:<frame <FONT color=#ff0000>name</FONT>="top" <FONT color=#ff0000>src</FONT>="a.html" <FONT color=#ff0000>marginwidth</FONT>="5" <FONT color=#ff0000>marginheight</FONT>="5" <FONT color=#ff0000>scrolling</FONT>="Auto" <FONT color=#ff0000>frameborder</FONT>="0" <FONT color=#ff0000>noresize</FONT> <FONT color=#ff0000>framespacing</FONT>="6" <FONT color=#ff0000>bordercolor</FONT>="#0000FF"> </SPAN><UL><LI><SPAN><FONT color=#1b07a3>SRC="<FONT color=#ff0080>a.html</FONT>"</FONT><BR>设定此框窗中要显示的网页档案名称,每个框窗一定要对应著一个网页档案。你可 使用绝对路径或相对路径,有关此两者详见於【连结进阶】。 </SPAN><LI><SPAN><FONT color=#1b07a3>NAME="<FONT color=#ff0080>top</FONT>"</FONT><BR>设定这个框窗的名称,这样才能指定框架来作连结,必须但任意命名。 </SPAN><LI><SPAN><FONT color=#1b07a3>frameborder=<FONT color=#ff0080>0</FONT></FONT><BR>设定框架的边框,其值只有 0 和 1 , 0 表示不要边框, 1 表示要显示边框。(避 免使用 yes 或 no ) </SPAN><LI><SPAN><FONT color=#1b07a3>framespacing="<FONT color=#ff0080>6</FONT>"</FONT><BR>表示框架与框架间的保留空白的距离。 </SPAN><LI><SPAN><FONT color=#1b07a3>bordercolor="<FONT color=#ff0080>#008000</FONT>"</FONT><BR>设定框架的边框颜色。颜色值请参考【HTML 剖析】。 </SPAN><LI><SPAN><FONT color=#1b07a3>scrolling="<FONT color=#ff0080>Auto</FONT>"</FONT><BR>设定是否要显示卷轴,YES 表示要显示卷轴,NO 表示无论如何都不要显示, AUTO是视情况显示。 </SPAN><LI><SPAN><FONT color=#1b07a3>noresize</FONT><BR>设定不让使用者可以改变这个框框的大小,亦没有设定此参数,使用者可以很随 意地拉动框架,改变其大小。 </SPAN><LI><SPAN><FONT color=#1b07a3>marginhight=<FONT color=#ff0080>5</FONT></FONT><BR>表示框架高度部份边缘所保留的空间。 </SPAN><LI><SPAN><FONT color=#1b07a3>marginwidth=<FONT color=#ff0080>5</FONT></FONT><BR>表示框架宽度部份边缘所保留的空间。 </SPAN></LI></UL><SPAN>以下是一些例子:(与 Composer 教室的【运用框架】相同) </SPAN><P><SPAN><FONT color=#000000>例子</FONT></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 新细明体">HTML Code</SPAN> <SPAN><frameset rows="80,*"> </SPAN><DD><SPAN><frame name="top" src="a.html"> </SPAN><DD><SPAN><frame name="bottom" src="b.html"> <BR></frameset></SPAN> </DD><SPAN><FONT color=#000000>例子</FONT></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 新细明体">HTML Code</SPAN> <SPAN><frameset rows="80,*,80"> </SPAN><DD><SPAN><frame name="top" src="a.html"> </SPAN><DD><SPAN><frame name="middle" src="b.html"> </SPAN><DD><SPAN><frame name="bottom" src="c.html"> <BR></frameset></SPAN> </DD><SPAN><FONT color=#000000>例子</FONT></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 新细明体">HTML Code</SPAN> <SPAN><frameset cols="150,*"> <BR><frameset rows="80,*"> </SPAN><DD><SPAN><frame name="upper_left" src="a.html"> </SPAN><DD><SPAN><frame name="lower_left" src="b.html"> <BR></frameset> </SPAN><DD><SPAN><frame name="right" src="c.html"> <BR></frameset></SPAN> </DD><SPAN><FONT color=#000000>例子</FONT></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 新细明体">HTML Code</SPAN> <SPAN><frameset rows="80,*"> </SPAN><DD><SPAN><frame name="top" src="a.html"> <BR><frameset cols="150,*"> </SPAN><DD><SPAN><frame name="lower_left" src="b.html"> </SPAN><DD><SPAN><frame name="lower_right" src="c.html"> <BR></frameset> <BR></frameset></SPAN> </DD><SPAN><FONT color=#000000>例子</FONT></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 新细明体">HTML Code</SPAN> <SPAN><frameset cols="150,*"> </SPAN><DD><SPAN><frame name="left" src="a.html"> <BR><frameset rows="80,*"> </SPAN><DD><SPAN><frame name="upper_right" src="b.html"> </SPAN><DD><SPAN><frame name="lower_right" src="c.html"> <BR></frameset> <BR></frameset></SPAN> </DD></P><FONT color=#ca00ca><FONT size=2>■</FONT> <NOFRAMES> :</FONT><FONT color=#000000 size=2>▲Top</FONT><SPAN>当别人使用的<SPAN class=unnamed8><FONT color=#0000ff>浏览器</FONT></SPAN>太旧,不支援框架这个功能时,他看到的将会是一片空白。为了避免 这种情况,可使用 <FONT color=#ff0000><NOFRAMES></FONT> 这个标记,当使用者的<SPAN class=unnamed8><FONT color=#0000ff>浏览器</FONT></SPAN>看不到框架时,他就会看 到 <FONT color=#ff0000><NOFRAMES></FONT> 与 <FONT color=#ff0000> 之间的内容,而不是一片空白。这些内容可以是提醒 浏览转用新的浏览器的字句,甚至是一个没有框架的网页或能自动切换至没有框架的版本 亦可。

应用方法:
在 标记范围加入 标记,以下是一个例子:

<BR><body> <BR>很抱歉,馈下使用的<SPAN class=unnamed8><FONT color=#0000ff>浏览器</FONT></SPAN>不支援框架功能,请转用新的<SPAN class=unnamed8><FONT color=#0000ff>浏览器</FONT></SPAN>。 <BR></body> <BR>

浏览器支援框架,那堋它不会理会 中的东西,但若<SPAN class=unnamed8><FONT color=#0000ff>浏览器</FONT></SPAN>不支援框架,由 於不认识所有框架标记,不明的标记会被略过,标记包围的东西便被解读出来,所以放在 <noframes>范围内的文字会被显示。 </SPAN></P><FONT color=#ca00ca><FONT size=2>■</FONT> <IFRAME> :</FONT><FONT color=#000000 size=2>▲Top</FONT><SPAN><FONT color=#ff0000>这标记只适用於 IE。</FONT> 它的作用是在一页网页中间插入一个框窗以显示另一个文件。它是 一个围堵标记,但围著的字句只有在<SPAN class=unnamed8><FONT color=#0000ff>浏览器</FONT></SPAN>不支援 iframe 标记时才会显示,如<noframes> 一样,可以放些提醒字句之类。通常 iframe 配合一个辨认<SPAN class=unnamed8><FONT color=#0000ff>浏览器</FONT></SPAN>的 Java Script 会较好,若 &#106avascript 认出该<SPAN class=unnamed8><FONT color=#0000ff>浏览器</FONT></SPAN>并非 Internet Explorer 便会切换至另一版本。 </SPAN><P><SPAN><iframe> 的参数设定如下: <BR>例子: <iframe <FONT color=#ff0000>src</FONT>="iframe.html" <FONT color=#ff0000>name</FONT>="test" <FONT color=#ff0000>align</FONT>="MIDDLE" <FONT color=#ff0000>width</FONT>="300" <FONT color=#ff0000>height</FONT>="100" <FONT color=#ff0000>marginwidth</FONT>="1" <FONT color=#ff0000>marginheight</FONT>="1" <FONT color=#ff0000>frameborder</FONT>="1" scrolling="Yes"> </SPAN><UL><LI><SPAN><FONT color=#ff0000>src</FONT>="iframe.html" <BR>欲显示於此框窗的文件来源除档案名称,必要加上相对或绝对路径。 </SPAN><LI><SPAN><FONT color=#ff0000>name</FONT>="test" <BR>此框窗名称,这是连结标记的 target 参数所 要的, </SPAN><LI><SPAN><FONT color=#ff0000>align</FONT>="MIDDLE" <BR>可选值为 left, right, top, middle, bottom,作用不大 </SPAN><LI><SPAN><FONT color=#ff0000>width</FONT>="300" <FONT color=#ff0000>height</FONT>="100" <BR>框窗的宽及长,以 pixels 为单位。 </SPAN><LI><SPAN><FONT color=#ff0000>marginwidth</FONT>="1" <FONT color=#ff0000>marginheight</FONT>="1" <BR>该插入的文件与框边所保留的空间。 </SPAN><LI><SPAN><FONT color=#ff0000>frameborder</FONT>="1" <BR>使用 1 表示显示边框, 0 则不显示。(可以是 yes 或 no) </SPAN><LI><SPAN><FONT color=#ff0000>scrolling</FONT>="Yes" <BR>使用 Yes 表示容许卷动(内定), No 则不容许卷动。 </SPAN></LI></UL><P><SPAN>例子: </SPAN><SPAN><FONT color=#ffffff>原始码</FONT></SPAN><SPAN><BR><FONT color=#000080><center></FONT> <FONT color=#008080><iframe src="http://www.pcedu.com.cn/index.html" name="test" align="MIDDLE" width="300" height="100" marginwidth="5" marginheight="5" frameborder="1"></FONT> <BR>很抱歉,馈下使用的<SPAN class=unnamed8><FONT color=#0000ff>浏览器</FONT></SPAN>并不支援 IFrame,不能正常浏览我的网页。<FONT color=#008080></iframe></FONT> <BR><FONT color=#000080></center></FONT> </SPAN><SPAN><FONT color=#ffffff>显示结果</FONT></SPAN><P><CENTER><IFRAME name=test align=middle marginWidth=5 marginHeight=5 src="http://www.11players.net" frameBorder=1 width=300 height=100> 很抱歉,馈下使用的<span class="unnamed8"><font color="#0000FF">浏览器</font></span>并不支援 IFrame,不能正常浏览我的网页。 </IFRAME></CENTER></P><P></P><BR> </SPAN> <BR/>           </div> <textarea name="TextBoxNews" rows="2" cols="20" id="TextBoxNews" style="height:0px;width:0px;"> </textarea><hr style="width:400px; height:1px;" /> <input type="button" value="upload picture(上传图片)" onclick="iFrameDisplay()"/> <iframe id="iframepage" src="./UploadNewsVideoPageToLocalHost.aspx" scrolling="no" frameborder="0" width="100%" style="display:none;"></iframe><br /> <input type="hidden" name="HiddenFieldPicPath" id="HiddenFieldPicPath" /><br /> </td> </tr> </table> </div> <hr style="width:800px; height:1px;" /> <div style="width:800px; height:auto; background-color:#FFFFCC;"> <div id="UpdatePanel2"> <table style="width:800px; height:20px;"> <tr> <td style="width:300px; height:20px; font-family:黑体; font-size:small; color:#555;" align="left"> There are 0 records, </td> <td style="width:500px; height:20px;"> </td> </tr> </table> </div> </div> <div id="UpdatePanel1"> <div id="commentPanel" style="width:800px; height:310px; background-color:#FFFFCC;"> <table style="width:800px; height:300px;"> <tr> <td style="width:200px; height:50px; font-family:黑体;" align="right"> Comment: </td> <td style="width:600px; height:200px;" rowspan="2"> <textarea name="TextBoxUserComment" rows="2" cols="20" id="TextBoxUserComment" style="color:#404040;font-family:新宋体;font-size:Larger;height:200px;width:600px;"> </textarea></td> </tr> <tr> <td style="width:200px; height:150px;">Must be registered users to comment(必须是注册用户才能发表评论)</td> </tr> <tr> <td style="width:200px; height:50px;"></td> <td style="width:600px; height:50px;"> <span id="RequiredFieldValidator1" style="visibility:hidden;">Comments can't is empty(评论不能为空)</span> <input type="submit" name="ButtonUserComment" value="Comment" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ButtonUserComment&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ButtonUserComment" style="color:Red;background-color:#FFFFCC;border-color:#FFFFCC;" /> <span id="LabelNewsComment" style="display:inline-block;color:Red;width:400px;"></span></td> </tr> </table> </div> </div> <script type="text/javascript"> //<![CDATA[ var Page_Validators = new Array(document.getElementById("RequiredFieldValidator1")); //]]> </script> <script type="text/javascript"> //<![CDATA[ var RequiredFieldValidator1 = document.all ? document.all["RequiredFieldValidator1"] : document.getElementById("RequiredFieldValidator1"); RequiredFieldValidator1.controltovalidate = "TextBoxUserComment"; RequiredFieldValidator1.errormessage = "RequiredFieldValidator"; RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid"; RequiredFieldValidator1.initialvalue = ""; //]]> </script> <script type="text/javascript"> //<![CDATA[ var a=0;if(a==0){alert('Please log in(请您登录!)');location='Userlogin.aspx';} var Page_ValidationActive = false; if (typeof(ValidatorOnLoad) == "function") { ValidatorOnLoad(); } function ValidatorOnSubmit() { if (Page_ValidationActive) { return ValidatorCommonOnSubmit(); } else { return true; } } document.getElementById('RequiredFieldValidator1').dispose = function() { Array.remove(Page_Validators, document.getElementById('RequiredFieldValidator1')); } //]]> </script> </form> </center> <center > <!--网站底部--> <div style=" width:1200px; background-color:#FFFFFF;"> <hr style=" width:1200px; height:1px;"/> <table> <tr style=" height:50px; width:1200px;"> <td align="center" style="height:50px;"> <a href="disclaimer.html" style="font-family:黑体; font-size:small; color:#555;" target="_blank">Disclaimer</a> </td> <td align="center" style="height:50px;"> <a href="privacy policy.html" style="font-family:黑体; font-size:small; color:#555;" target="_blank">Privacy Policy</a> </td> <td align="center" style="height:50px;"> <a href="AboutUs.html" style="font-family:黑体; font-size:small; color:#555;" target="_blank">About us</a> </td> <td align="center" style="height:50px;"> <a href="SiteMap.html" style="font-family:黑体; font-size:small; color:#555;" target="_blank">Site Map</a> </td> <td align="center" style="height:50px;"> <!--百度网站统计--> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fcd1d276abd98aad311a7e9ab1f772b56' type='text/javascript'%3E%3C/script%3E")); </script> </td> <td align="center" style="height:50px;"> </td> <td align="center" style="height:50px;"> <a href="http://webscan.360.cn"><img border="0" src="http://webscan.360.cn/status/pai/hash/494b6dad04e216e4d1f270ad7bfe37f4" alt=""/></a> </td> </tr> </table> <table> <tr> <td style="width:120px; height:30px;" align="left"> Copyright ©2011-</td> <td style="width:50px; height:30px;" align="left"><div id="yearTime"></div> </td> <td style="width:300px; height:30px;" align="left"> uuhomepage.com, Inc. All rights reserved. </td> </tr> </table> </div> </center> </body> </html>