可调整大小的帧仿真 [英] Resizable frame emulation

查看:118
本文介绍了可调整大小的帧仿真的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解< frameset> < frame> 标记已弃用。有没有办法模拟可调大小的帧?我想要的是水平或垂直分离该区域的窄分离器,其可由使用者移动,使得当其一侧变小时,另一侧变大,反之亦然。我不想像传统框架那样用一个html页面填充每一帧,而是用一些DOM材料填充。

I understand that <frameset> and <frame> tag are becoming deprecated. Is there a way to emulate resizable frames? What I want is a narrow separator separating the area either horizontally or vertically, which is movable by the user so that when one side of it becomes smaller, the other side becomes larger, and vice versa. I do not want to fill in each frame with an html page like the conventional frame, but instead with some DOM materials.

我知道CSS3有 resize 属性,但它只控制自身的大小。我不知道这是否是用于解决方案。

I know that CSS3 has resize attribute, but that controls only the size of itself. I am not sure if this is to be used for the solution.

我不特别喜欢使用JavaScript,但我不排除使用它的可能性。

I don't particularly prefer using JavaScript, but I am not excluding the possibility of using it if necessary.

推荐答案

请勿使用框架集。我不认为jQuery调整大小会帮助你很多。

Do not use frameset, please. I don't think jQuery resize will help you much, either.

最好的方法是使用splitter。有几个插件jquery会做到这一点,在许多不同的方式,他们都是很简单。

The best way to do this is by using a "splitter". There are several plugins for jquery that will do this in many different way and they all are actually quite simple.

我以前使用过这个: http://methvin.com/splitter/

您可以在这里找到一个不错的演示: http:// methvin.com/splitter/3psplitter.html

You can find a nice demo here: http://methvin.com/splitter/3psplitter.html

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

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