在 Firefox 中禁用框架调整大小

发布于 2024-07-12 08:59:46 字数 205 浏览 6 评论 0原文

我有以下框架集:

在 IE 中,框架集按照我想要的方式呈现,即一个无缝页面的外观。 在 Firefox 中,框架集在框架之间显示一个可抓取的栏,并允许抓取该栏并调整框架的大小,我似乎无法摆脱它。

另外,为什么 Firefox 和 Safari 中的框架不直线排列?

I have the following frameset:

<frameset rows="625,*" cols="*" framespacing="0" frameborder="0" border="0" noresize>
<frame marginheight="0px" src="music-NEW.php" name="mainFrame" scrolling="NO" frameborder="0" noresize>
<frame marginheight="0px" src="musicplayer.php" name="bottomFrame" scrolling="NO" frameborder="0" noresize>
</frameset>

in IE the frameset renders how I would like, the appearance of one seamless page. in Firefox, the frameset displays with a grabable bar between the frames and allows grabbing the bar and resizing the frame, which I can't seem to get rid of.

also, why do the frames not line up straight in Firefox and Safari?

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

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

发布评论

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

评论(4

伴梦长久 2024-07-19 08:59:46

添加 noresize="noresize" 到你的框架中:

<frame  noresize="noresize">

Add a noresize="noresize" to your frame:

<frame  noresize="noresize">
月棠 2024-07-19 08:59:46

您真的希望用户无法调整框架大小吗?

为什么?

你知道他的屏幕有多大吗? 您是否知道,如果他/她患有残疾并且无法阅读小写字母并且必须调整此框架的大小?

在我看来,你最好考虑固定尺寸并禁止某些东西。 您的访客/用户不会幸运。 尽管如此,他/她总是能够删除这个愚蠢的属性(例如Firebug)。

只是我的两分钱。

Do you really want the user not to be able to resize your frames?

WHY?

Do you know, how big his screen is? Do you know, if he/she is disabled and cannot read small letters and has to resize this frame?

In my opinion, you better think about fixed sizes and prohibiting something. Your visitor/user won't be lucky. Nonetheless, he/she will always be able to remove this stupid attribute (Firebug e.g.).

Just my two cents.

木有鱼丸 2024-07-19 08:59:46

您可能想知道 marginwidth 和 marginheight 必须大于 0px。 尝试不使用该属性?

marginwidth = 像素[CN]

该属性指定框架内容在其左右页边距之间所留的空间量。 该值必须大于零(像素)。 默认值取决于用户代理。

marginheight = 像素[CN]

此属性指定框架内容之间在其顶部和底部边距中保留的空间量。 该值必须大于零(像素)。 默认值取决于用户代理。

You might want to know marginwidth and marginheight have to be larger then 0px. Try without that attribute?

marginwidth = pixels [CN]

This attribute specifies the amount of space to be left between the frame's contents in its left and right margins. The value must be greater than zero (pixels). The default value depends on the user agent.

marginheight = pixels [CN]

This attribute specifies the amount of space to be left between the frame's contents in its top and bottom margins. The value must be greater than zero (pixels). The default value depends on the user agent.

镜花水月 2024-07-19 08:59:46

现在是老问题了,但也许在这种情况下使用 IFRAME 是相关的。

Old question now, but perhaps it would be relevant to use an IFRAME in situations like this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文