“灯箱”里面有一个 php 页面,如果 Javascript 关闭,可以在新选项卡中优雅地打开页面

发布于 2024-10-06 09:26:27 字数 696 浏览 0 评论 0原文

这适用于常见的 PHP/SQL/html/CSS 类型的 webdev。网站可能由使用旧手机浏览器等的用户访问。

弹出框将包含“交互式”表单,即用户输入数据、单击按钮;如果表单有问题,用户可以在弹出窗口仍然存在的情况下更正它。

目标是简单地拥有一个完整的文本流,其中一些单词与电子计算表格、代码语法检查文本区域、模拟器相关联。 (一个很好的类比是 W3Schools 上的 Try-It 编辑器。就像这样,但允许它以模式方式弹出,而不是像他们那样总是在新选项卡中弹出。)

所以:我正在寻找建议 a)具有

紧凑代码的通用“弹出框”,使用最少的框架等来执行此操作, b) 键入旧浏览器不会抛出的链接的正确方法(如果没有 Javascript 支持,它应该是“透明”),并且默认为 target="_blank" 或类似的。 c) HTML4 支持是一个很大的优势(CSS1/2/3 都可以,只要它不严重依赖 CSS2/3 来实现弹出窗口“功能”的关键部分)

也许我在这里很挑剔,只是我失去了我的书签,这是一份出色的 Lightbox 替代品列表,其中包含所需的框架、总代码大小和功能集。 :) 另外,我还没有全部尝试过!你知道我在想哪一个吗?

所以基本上,现在是命名时间! :) 出于上述 a/b/c 的原因,您喜欢哪一个?给我你认为优秀的那些!

编辑:我猜可能有很多正确答案,但我认为我已将其范围缩小到很少。第一个获得了令人垂涎的复选标记。反正 :)

This is for the usual PHP/SQL/html/CSS type of webdev. Site might be visited by users with old phone browsers etc.

The popup box will contain 'interactive' forms in the sense that user enters data, clicks a button; if there was a problem with the form, the user can correct it with the popup still there.

The goal is to simply have a complete flow of text where some words are linked to electronics-calculation forms, code syntax-checking textareas, simulators. (A great analogy is the Try-It editor on W3Schools. Like that, but allow it to pop-up modally instead of always in a new tab like theirs.)

So: I'm looking for suggestions for

a) A generic 'popup box' with tight code, using a minimum of frameworks etc that does this,
b) The correct way to type links that old browsers won't throw up on (if no Javascript support, it should be 'transparent') and default to target="_blank" or similar.
c) HTML4 support is a big plus (CSS1/2/3 is all fine, as long as it doesn't rely heavily on CSS2/3 for crucial parts of the popup to 'function')

Probably I'm being picky here, it's just I lost my bookmark to that excellent list of Lightbox alternatives with required frameworks, total codesize and featureset. :) Also, I haven't tried them all! Do you know which one I'm thinking of?

So basically, it's name-dropping time! :) Which one do you like for the reasons a/b/c above? Give me the ones you think excel!

Edit: Could be many correct answers I guess, but I've narrowed it down to few, I think. First one gets the coveted checkmark. Anyway :)

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

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

发布评论

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

评论(1

梦里梦着梦中梦 2024-10-13 09:26:27

我的建议 http://colorpowered.com/colorbox/

不确定是否符合您的规格,但我只是想分享我最喜欢的灯箱。

My suggestion http://colorpowered.com/colorbox/

Not sure if qualifies to your specifications, but I just wanted to share my fav lightbox.

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