当前位置:软件学堂 > 资讯首页 > 网络编程 > DIV+CSS > 表单不支持框架标记noframes

表单不支持框架标记noframes

2012/11/22 22:34:40作者:佚名来源:网络

移动端

【实例介绍】

表单不支持框架标记noframes

9.3.7不支持框架标记noframes不支持框架标记noframes用来为不能显示框架的浏览器制作内容。因为有一些浏览器或者浏览设备中并不支持框架元素,将不能正常显示内容。使用noflames标记,可以使此类浏览器中显示noframes标记中的内容。

【基本语法】

<noframes>替换显示内容</noframes>

【语法介绍】

在该语法中,<noframes>和</noframes>标记之间的部分就是在不支持框架的浏览器中所要显示的内容。

【实例代码】

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>设置框架滚动条</title> </head> <frameset rows="123,*" cols="*" frameborder="yes" border="1" framespacing="1">   <frame src="top.html" name="topFrame" scrolling="yes" noresize marginwidth="200" marginheight="100" />   <frameset rows="*" cols="265,*" framespacing="0" frameborder="yes" border="0">     <frame src="left.html" name="leftFrame" scrolling="yes" noresize marginwidth="20"marginheight="100"/>     <frame src="right.html" name="rightFrame" scrolling="no" noresize/>   </frameset> </frameset> <noframes>

<body>此浏览器不支持框架结构页面!</body>

</noframes> </html>

【代码分析】

在代码中,加粗部分<noframes>…</noframes>标记的作用为,如果此浏览器不支持框架页面,则显示此标记中的内容。