如何使 HTML 框架不可移动?

发布于 2024-09-26 07:24:07 字数 513 浏览 0 评论 0原文

如何修改此框架以使用户无法移动这些框架?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title></title>
</head>
    <frameset border="1" rows="100, 200"  >
      <frame src="page1.html">
      <frameset border="1" cols="20%, 80%" >
        <frame  src="page2.html">
        <frame src="page3.html">
      </frameset>      
  </frameset>
</html>

How can I modify this frames so that users can not move those frames?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title></title>
</head>
    <frameset border="1" rows="100, 200"  >
      <frame src="page1.html">
      <frameset border="1" cols="20%, 80%" >
        <frame  src="page2.html">
        <frame src="page3.html">
      </frameset>      
  </frameset>
</html>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏天碎花小短裙 2024-10-03 07:24:07

您可以使用noresize 属性 来禁用它:

<frameset border="1" rows="100, 200"  >
  <frame src="page1.html" noresize>
  <frameset border="1" cols="20%, 80%" >
    <frame  src="page2.html" noresize>
    <frame src="page3.html" noresize>
  </frameset>      
</frameset>

You can use the noresize attribute to disable it:

<frameset border="1" rows="100, 200"  >
  <frame src="page1.html" noresize>
  <frameset border="1" cols="20%, 80%" >
    <frame  src="page2.html" noresize>
    <frame src="page3.html" noresize>
  </frameset>      
</frameset>
请叫√我孤独 2024-10-03 07:24:07

我赞同尼克所说的,但想补充一点,我认为它应该是以下之一:

noresize="true"
noresize="noresize"

我不确定它是哪一个,但我知道属性“nowrap”也使用“nowrap”作为值,而不是的真实的。有人可以确认以上哪个选项适用于此吗?

另外,一定要用框架吗?我注意到您正在每个页面中加载页面。如果将它们创建为 div,则可以使用大多数服务器端语言将页面加载到 div 中。例如:

  • 在 ASP.Net 中,您可以执行此操作 - 但不幸的是,我现在没有可用的代码。有一种方法可以处理页面中的页面。
  • 在 PHP 中,您可以使用 include 命令(include "page1.htm";)。我认为 PHP 更简单。

I second what Nick said, but would just like to add that I think it should be one of the following:

noresize="true"
noresize="noresize"

I am not sure which one it is, but I know the attribute "nowrap" uses "nowrap" for the value too, instead of true. Can someone please confirm which of the above options applies here?

Also do you have to use frames? I notice you are loading pages in each one. If you create them as divs, you can use most server side languages to load pages into the divs. For example:

  • In ASP.Net you are able to do this - but unfortunately I do not have the code for this available right now. There is a way to process a page within a page.
  • In PHP you can use the include command (include "page1.htm";). PHP is much simpler in my opinion.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文