为什么目标属性在我的框架中不起作用?
我正在为我的 CMS 构建 FRAME 解决方案。但是,在你们开始向我表示对整个框架的不尊重之前,请记住,这是一个仅对管理员可见的解决方案,而我在框架中执行此操作的原因是因为这样我就不必继续重新加载管理控件。所以 整个访问者无法添加书签问题在这里并不适用。不过,我将来可能会研究其他方法(可能使用弹出窗口)。
不管怎样,自从我上次使用框架以来已经有大约十五年了,并且由于某种原因我的目标属性不起作用。如果您访问此处:
http://www.eklundh。 com/admin/struct/frame.php?path=/index.php
左侧“窗格”中的链接应该在右侧窗格中打开,但事实并非如此。我似乎不明白为什么。我做错了什么?
如果您对如何通过不使用框架来解决此问题有一个很好的建议(但仍然不必为每个页面加载重新加载左窗格),那么我洗耳恭听,但我也想听听我的目标的解决方案问题 :)
I'm building a FRAME solution for my CMS. But, before you all start showing me disrespect about the entire frame thing keep in mind that this is a solution that would be visible only to administrators, and the reason why I'm doing this in frames is because then I don't have to keep reloading the administration controls. So the
entire visitors-can't-bookmark issue doesn't really apply here. Still, I'll probably look into other ways of doing this in the future (possibly with a popup).
Anyway, it's been some fifteen years since I last used frames, and for some reason my target attributes doesn't work. If you go here:
http://www.eklundh.com/admin/structure/frame.php?path=/index.php
The links in the left "pane" should open in the right pane, but doesn't. And I can't seem to understand why. What am I doing wrong?
If you have a good suggestion on how to solve this by not using frames (but still not having to reload the left pane for each page load) then I'm all ears, but I'd also like to hear about solutions to my target problem :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在主框架的页面中,您有:
因此您需要定位
mainwindow
而不是main
。或者直接删除该代码,这似乎更明智......In the pages in the main frame you have:
So you'd need to target
mainwindow
instead ofmain
. Or just take that code out, which seems a lot more sensible...