帮助Firefox中的动态列调整大小 [英] Help with Dynamic Column Resizing in Firefox

查看:61
本文介绍了帮助Firefox中的动态列调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图通过拖动垂直条来让这个iframe动态调整大小,但它在Mozilla中不起作用(它最初在IE中工作,但我一直试图将其移植过来)。任何帮助将不胜感激。


这里是resize.js

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | 换行 | 行号

解决方案

Heya,bgraphics2031。欢迎来到TSDN!


我试图让这个iframe通过拖动垂直条来动态调整大小,但它不能正常工作Mozilla(它最初在IE中工作,但我一直试图将其移植)。任何帮助将不胜感激。



什么不起作用?


我在构建拖拽时遇到了问题drop library以将mousemove事件附加到窗口(工作)为中心而不是拖动元素(不能很好地工作)。如果不知道为什么它不起作用,那就是我能提供的最好的东西。


嗨!感谢您的答复。抱歉没有更具体。在Mozilla(Firefox)中,我无法调整列的大小。它创建了垂直条(VBar),但它似乎无法识别我想拖动条的事件?我是JS的新手并且广泛地查看它但是走到了死胡同。谢谢!



似乎没有认出我要拖动栏的事件?我是JS的新手并且广泛地查看它但是走到了死胡同。



这就是我要做的事情:

- 在页面的某处创建一个textarea并给它一些ID。出于本示例的目的,我们将其称为调试。

- 在每个事件处理程序中,调用

展开 | 选择 | Wrap | 行号

I''m trying to get this iframe to dynamically resize by dragging a vertical bar, but it''s not working in Mozilla (It originally worked in IE but I''ve been trying to port it over). Any help will be appreciated.

Here''s the resize.js

Expand|Select|Wrap|Line Numbers

解决方案

Heya, bgraphics2031. Welcome to TSDN!

I''m trying to get this iframe to dynamically resize by dragging a vertical bar, but it''s not working in Mozilla (It originally worked in IE but I''ve been trying to port it over). Any help will be appreciated.

What''s not working about it?

I''ve had problems building a drag & drop library that centered around attaching the mousemove event to the window (works) rather than the dragged element (not work so well). Without knowing more about why it''s not working, that''s about the best I can offer.


Hi! Thanks for your response. Sorry for not being more specific. In Mozilla (Firefox) I cannot resize the column. It created the vertical bar (VBar) but it doesn''t seem to recognize the event that I want to drag the bar? I''m new to JS and looked it up extensively but come to a dead end. Thanks!


It doesn''t seem to recognize the event that I want to drag the bar? I''m new to JS and looked it up extensively but come to a dead end.

Here''s what I would do:
- Create a textarea somewhere on your page and give it some kind of ID. For the purposes of this example, we''ll call it ''debug''.
- In each of your event handlers, call

Expand|Select|Wrap|Line Numbers


这篇关于帮助Firefox中的动态列调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆