JavaScript库创建内页格式窗口 [英] JavaScript library to create div-style window within page

查看:121
本文介绍了JavaScript库创建内页格式窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着去找出可以在我的网站上创建一个页面内一个漂亮的内窗口弹出一个很好的JavaScript库。

Im trying to find out a good JavaScript library that can create a nice "inner-window" popup within a page on my site.

我想不必担心屏幕定位(也就是不要有calcuate如果窗口的大小将关闭屏幕,等...),但只是做一个新的弹出窗口,有内容在里面

I would like to not have to worry about screen positioning (i.e. dont have to calcuate if the size of the window will be off screen, etc...), but just make a new pop-up that has content in it.

我将使用.NET 3.5 ASP.NET(可能MVC,还没有开始呢),我知道jQuery有很大的支持,但是从我所看到的,它没有这种类型的插件功能。

I'll be using .NET 3.5 ASP.NET (maybe MVC, havent started yet), I know JQuery has great support, but from what I have seen, it doesnt have this type of widget feature.

请注意,我不希望以任何方式,形状采用帧,或形成!而是浮动DIV风格的方法(或类似)。

Please note, I do not want to use "frames" in any way, shape, or form! But rather the floating div style approach (or similar).

感谢堆! 马克

推荐答案

浮箱,面板和对话框:

有关对话框和窗口,也许 YUI模块 将是一个很好的解决方案

For dialog boxes and windows, perhaps a YUI module would be a good solution.

莫代尔盒

如果您不是一个JavaScript程序员,然后你有兴趣在一个更复杂的模式中,有jQuery的插件 产品 中的 模式收藏夹效果

If you aren't a javascript programmer, and you're interested in a more-elaborate modal box, there are jQuery plugins offering the modal lightbox effect.

旁注:有许多图书馆提供这样的功能,但如果盒子本身是你需要,请审议的的唯一一件一些图书馆将包括你AREN很多东西采用t 。如果你仔细地只使用你所需要的包,你可以保持您的网页漂亮和瘦肉。

Sidenote: There are many libraries offering this kind of functionality, but if the box itself is the only piece you need, keep in consideration that some libraries will include many things you aren't using. If you're careful to use only the packages you need, you can keep your page nice and lean.

旁注::如果你还算精通的JavaScript,或者希望变成这样,请记住,你总是可以的编写自己的的。这是常见的人在世界上的JavaScript直转库。图书馆是现代的JavaScript景观的重要组成部分,但有时他们成为了拐杖的开发。写几个前端件自己是一个伟大的方式潜入前端开发。

Sidenote: If you're fairly well-versed with javascript, or wish to become so, remember that you can always write your own. It's common for people in the javascript world to turn straight to libraries. Libraries are an important part of the modern javascript landscape, but sometimes they become a crutch for developers. Writing a few front-end pieces yourself is a great way to dive into front-end development.

这篇关于JavaScript库创建内页格式窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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