需要 HTML 框架的替代品(我现在知道为什么它们是邪恶的)
总而言之,我正在尝试制作实时页面渲染(浏览网站),同时具有功能覆盖菜单。
我可能在设计应用程序时犯了一个错误,并且需要框架的替代方案。对此有任何建议表示赞赏。
因此该应用程序的目标是分析网页内容。它有一个全局菜单,其中包含常用的内容:配置文件、注销、设置。带有标准法律内容的全局页脚,中间是所有功能的所在。
我知道其中一个功能是网站的实时渲染,菜单覆盖在底部。有了它,他们可以查看元素并就其中的内容撰写评论。
每个功能都嵌入在框架内,因此如果我单击页面视图按钮,框架将弹出到框架页面并转发它。问题就在这里。为了获得站点的实时渲染并以这种方式使用它,我必须将一个框架放在一个框架内,因此重复的滚动条诞生了。
如果有人对布局如何工作感到困惑,这里有两张照片。 http://s1180.photobucket.com/albums/ x406/0vertone/?action=view¤t=pageviewlayout.jpg 和一个更干净的设计师模型(主要只是全局菜单) http://s1180.photobucket.com/albums/ x406/0vertone/?action=view¤t=globalview.jpg
我已经对其进行了编码,对于覆盖菜单,我尝试了手风琴和一个可以滑动的 css 风格的东西。您可以在此处查看代码。
全球菜单: 将其另存为 global.html.erb http://paste.ubuntu.com/648135/
页面浏览: 将其另存为 pageview.html.erb http://pastebin.ubuntu.com/648146/ 完成此操作后,它应该按您的预期工作。
技术或完成方式是可以选择的,但设计不是。 现在看看,在实时网站底部但页脚上方的页面视图上。需要有一个可以滑入滑出的覆盖菜单。如果有人对如何实现网站的实时视图和覆盖菜单有任何想法,我会洗耳恭听。
谢谢
快速摘要:
我想要实现的是一个具有在所有页面上保持一致的全局菜单的应用程序。在这个全局菜单的中间是一个框架,可以转到我创建的其他页面,例如列表视图、统计数据和页面视图。
页面视图是我目前正在研究的。页面视图中有 2 个组件, 网站的实时视图(无论他们想要什么页面)和底部的覆盖菜单。就像页面底部的 YouTube 播放列表一样。问题是,为了将网站的实时渲染放入框架中,您需要在 iframe 中包含一个 iframe,而我正在尝试解决该问题。
但我并没有将其视为错误,而是寻找替代方案来实现上述目标,
我在pastebin上提供了最终的解决方案: 页面浏览量: http://paste.ubuntu.com/648246/
全局视图: http://paste.ubuntu.com/648250/
基本上是这样 jQuery('#iframeWrapper').height('61%');
Just to summarize, I'm trying to make a live page render (browse websites) while having an overlaying menu for functionality.
I may have made a mistake in how I designed my application and need an alternative to frames. Any advice is appreciated on this.
So the goal of the application is analyzing web content. Its got a global menu with the usual stuff: profile, sign out, settings. A global footer with the standard legal stuff and in the middle is where all the functionality comes in.
I knew that one of the functionality was a live render of the site with a menu overlaying at the bottom. With it, they could view elements and write up comments on what was there.
Each function was embedded inside a frame so if i clicked the page view button, the frame would shoot off to the frame page and relay it. Heres the problem. In order to get a live render of a site and using it this way, I had to put a frame inside a frame and thus duplicate scroll bars were born.
If anyones confused as to how the layout works there are 2 shots here.
http://s1180.photobucket.com/albums/x406/0vertone/?action=view¤t=pageviewlayout.jpg
And a cleaner designer model (mainly just global menu)
http://s1180.photobucket.com/albums/x406/0vertone/?action=view¤t=globalview.jpg
I've got the coding it and for the overlaying menus, I tried both an accordion and a css style thing that slides. You can take a look at the code here.
GLOBAL MENU:
save this as global.html.erb
http://paste.ubuntu.com/648135/
PAGE VIEW:
save this as pageview.html.erb
http://pastebin.ubuntu.com/648146/
Once you've done this, it should work as you'd expect.
The technology or way its done is option but the design is not.
Just looking now, on the page view at the bottom of live website but above the footer. There needs to be an overlaying menu that slides in an out. If anyone has any ideas on how to implement a live view of a site and an overlaying menu, I'm all ears.
Thank you
Quick Summary:
What I'm trying to achieve is an application that has a global menu that stays consistent across all pages. In the middle of this global menu is a frame that goes to other pages that I've created, e.g list view, statistics and page view.
Page view is the one I'm working on at the moment. In the page view there are 2 components,
Live view of website (whatever page they want) and an overlaying menu at the bottom. Think like youtubes playlist on bottom of page. The problem is that in order to put this live render of a website in the frame, you have an iframe within an iframe and I;m trying to resolve that.
But rather than treat it as a bug, I'm looking for alternatives to how I can achieve the above
My final solution available on pastebin:
page view:
http://paste.ubuntu.com/648246/
Global view:
http://paste.ubuntu.com/648250/
Basically this
jQuery('#iframeWrapper').height('61%');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 CSS 和 div 的快速演示 - 您也许可以使用此方法做您想做的事情。
此外,还可以选择使用 ajax 将内容调用到#holder div,而不是使用 iFrame
This is a quick demo of CSS and divs - you might be able to do what you want using this method.
Also there is he option of using ajax to call content into the #holder div rather than using an iFrame too