IE7 中的目标属性
我们有一些网页有两个框架,其中一个框架位于 IE 6 搜索栏中(使用 open("path.htm", "_search");
调用创建)。 搜索栏框架中显示的页面包含按钮,单击这些按钮我们会更新右侧框架。 迁移到 IE 7 时,两个框架都在自己的窗口中打开,即我现在打开了两个窗口。
在网上搜索时,我发现出于安全考虑,IE 7 已经禁用了 IE 搜索栏。 我想这是因为他们现在将搜索文本框移至右上角,à la Firefox。
我的问题是,我仍然需要这两个框架。 那么我应该做什么 - 我一直在考虑使用 标签,但只是想我应该发布到社区看看还有什么其他选择。
注意:我确实搜索了互联网,但无法真正想出其他选择。
We have some web pages which have two frames, with one frame in the IE 6 search bar (created using the open("path.htm", "_search");
call). The page shown in the frame on the search bar contains buttons, on click of which we update the right frame. On migration to IE 7, both frames open in their own windows, i.e, I now have two windows open.
On searching the Net, I found that IE 7 has disabled the IE search bar because of security concerns. I guess this is because they now have moved the search text box to the top right, à la Firefox.
My question is, I still need the two frames. So what should I do - I have been toying with the idea of using <frameset>
tags, but just thought I'd post to the community to see what other options there are.
NOTE: I did search the Internet, but couldn't really come up with other options.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确实没有 - IE6 搜索栏显然永远无法跨浏览器工作,所以
如果您坚持使用框架,您的选择是框架集和 iframe。
我建议的一个更好的选择是简单地将您拥有的任何搜索内容放入同一个页面中,它看起来只是像另一个框架,然后让 ajax(降级为无脚本的页面重新加载)进行搜索和响应处理更改页面的其余部分,但这取决于搜索的性质。 你能解释一下吗?
None really - the IE6 search bar would obviously never have worked cross-browser anyway, so
if you insist on frames your choices are frameset and iframe.
A better option I would suggest would be to simply put whatever searching content you have into the same page where it merely looks like another frame and let ajax (degrading to page reloads for noscripts) do the search and response handling to change the rest of the page, but this depends on exactly what the nature of the searches is. can you explain more?
有几个选项& 优点和缺点。
1.) 如果您尝试使用页面缩放功能,IE7(及更高版本)中的
会严重失败。
2.)
不允许任何内容悬停在或逃离框架的边界(例如菜单、日历等将在框架集边框下滑动,而不是在上方)
因此我个人发现如今的框架集相当笨重且无用。
我建议的是一个包含所有“搜索框架”内容的页面(例如称为index.html),以及在右侧加载内容的大型
。 这将解决您的问题,而不会陷入太多麻烦。
总而言之,如果您可以让当前的“静态”右侧页面仅提取内容,这将是“搜索框架”内容,这会更好,因为您不会失去添加书签等的能力。
您是吗?可以在这里使用服务器端语言吗? 例如,PHP 或类似的方法只需使用
require_once('left_buttons');
类型调用即可使此任务变得非常简单。There are a few options & pros and cons.
1.)
<frameset>
's in IE7 (and above) fail horribly if you attempt to use the page zoom feature.2.)
<frameset>
's do not allow any content to hover over or escape the frame's boundary (e.g. menus, calendars, etc. will slide under frameset borders, not over)Thus I personally find framesets rather bulky and unhelpful these days.
What I would suggest, is one page (call it index.html say) that contains all your "search frame" content, AND a large
<iframe>
on the right that you load content into. This will solve your issue without getting into too much trouble.That all said, if you can have your current "static" right side pages just pull in content, that would be the "search frame" content, this would work better, as you wouldn't lose the ability to bookmark etc.
Are you able to use a server side language here? e.g. PHP or similar would make this task very simple just using a
require_once('left_buttons');
type call.