个性化阅读
专注于IT技术分析

HTML noframes标记(HTML5不支持)

本文概述

HTML <noframes>标记用于包含替代文本, 如果浏览器不支持<frame>内容则显示该文本。它仅在浏览器不支持该框架时才起作用, 浏览器将忽略它。

<noframes>标签应在<frameset>元素内使用。

注意:请勿使用<noframes>, 因为它已被HTML5弃用, 目前不支持。

句法

<noframes>........</noframes>

以下是有关HTML <noframes>标记的一些规范

Display Block
开始日期/结束日期 开始和结束标签
Usage 带框架

<!DOCTYPE html>  
<html>  
<head>  
    <title>Noframe tag</title>  
</head>  
    <frameset cols="50%, 50%">  
    <frame src="https://www.srcmini02.com/html-table">  
    <frame src="https://www.srcmini02.com/css-table">
    <noframes>Sorry! Your browser does not support frames. </noframes>    
   </frameset>  
</html>

立即测试

属性

特定于标签的属性:

<noframes>标记在HTML中不包含任何特定的属性。

全局属性:

<noframes>标记仅支持HTML中的全局属性。

事件属性:

支持的浏览器

Element Chrome IE Firefox Opera Safari
<noframes> Yes Yes Yes Yes Yes
赞(0)
未经允许不得转载:srcmini » HTML noframes标记(HTML5不支持)

评论 抢沙发

评论前必须登录!