2

frameset doctype を使用する場合、そのページ内の frameset タグの外側で通常の html タグを使用できますか?

以下はコードです。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

    <html:html locale="true">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        </head>

    <frameset cols="*" rows="40,*">
            <frame src="#" />
            <frame src="#"/>
            <noframes>
                <body>
                Please enable frames to view.
                </body>
            </noframes>
        </frameset>

    <a href="#">Is this Normal Anchor Tag allowed for frameset doctype and if yes, is this the correct position ?</a>

    </html:html>
4

1 に答える 1

3

いいえ、コンテンツをフレームセットの外に置くことはできません。これは、doctype とは関係ありません。

body タグ内にのみコンテンツを配置できます。フレームセット ページには body タグがありません (タグ内を除くnoframes)。

于 2011-05-02T11:31:25.750 に答える