在单个页面中显示多个尺寸缩放的网页的最干净、最跨浏览器兼容的方式

发布于 2024-10-01 14:00:14 字数 351 浏览 8 评论 0原文

我正在使用 ASP.NET 开发一个 Web 应用程序,该应用程序处理显示一堆仪表等且值不断变化的页面。

对于部分导航,我需要能够在单个页面上显示一堆这些页面的小预览。

这可能有很多要求,但预览必须适合相同大小的“框架”,无论其原始大小如何,具有相同的缩放比例(1:1,空白是可以接受的),并且尽可能具有跨浏览器能力(至少适用于 IE、FF、Opera、Safari 和 Safari for iPhone/Pad/Pod)。

我一直在尝试使用 html iframe 来实现此目的,但我发现结果在不同的 Web 浏览器中高度不可预测,并且其样式属性与其他参数之间存在一些冲突。

可以在导航页面或控制页面或两者内实现此操作。

I'm developing a web application using ASP.NET that deals with pages that display a bunch of gauge etc, with changing values.

For part of the navigation I need to be able to display small previews of a bunch of these pages on a single page.

It may be a lot to ask, but the previews must fit into the same size 'frame' regardless of their original size, have equal scaling (1:1, blank space is acceptable), and be as cross-browser capable as possible (at least work on IE, FF, Opera, Safari & Safari for iPhone/Pad/Pod).

I've been trying to use html iframes to achieve this but I'm finding the results to be highly unpredictable across different web browsers, and some conflicts with it's style attributes against its other parameters.

Implementation of this can be within the navigation page or the control pages or both.

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

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

发布评论

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

评论(3

π浅易 2024-10-08 14:00:14

唯一的跨浏览器解决方案是在服务器端创建页面快照,并将其显示为图像。

相关问题:

The only cross-browser solution for this is to create a snapshot of the page on server side, and display it as an image.

Related questions:

べ映画 2024-10-08 14:00:14

我建议截取屏幕截图并使用浏览器检测来仅显示正确的图像。可能有更好的方法来做到这一点,但这至少应该让您开始。如果您需要没有的浏览器的屏幕截图,您可以使用 adobe 浏览器实验室。

I would suggest taking screenshots and using browser detection to display only the correct images. There's probably a better way to do it, but this should at least get you started. You can use adobe browser labs if you need a screenshot for a browser you don't have.

战皆罪 2024-10-08 14:00:14

预览必须是“实时”的,还是可以是静态的?所有页面都可以在互联网上使用吗(在这种情况下,您可以使用在线屏幕截图服务)还是内部页面?

Do the previews have to be "live", or can they be static? And are all pages available on the internet (in which case you might be able to use an online screenshot service) or are they internal pages?

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