使用HTML框架进行模板的潜在陷阱是什么?
时间:2020-03-06 14:58:52 来源:igfitidea点击:
我们也可以包括IFrame。
解决方案
使用标准框架/框架集:
- 加书签可能很难完成。
- 后退按钮可能会损坏。
- 搜索引擎的到来可能是一个内部框架。
- 在不同的浏览器中,打印将无法正常工作。
- 滚动条可能位于非标准/意外位置。
这里更多。
我想重新表达一下问题:使用HTML框架进行模板化有什么好处?有关该主题的详细阅读:
http://www.yourhtmlsource.com/frames/goodorbad.html
Quote from that article:
So, in conclusion, frames violate too
many accepted web standards to be a
worthy information delivery system. A
well-designed navigation structure
using tables or layers is infinitely
preferable.
Too many people use frames as a way to
change their navigation bars by only
modifying one page. This is much
better accomplished through includes.
A well-designed framed page can still
be produced, but it happens so rarely
that I would advise all coders to stay
away from the thought. Tests have also
shown that users do not like framed
navigation. It might seem sexy to the
coder, but if the users don't like it
then you're doing a bad job.
Frames confuse and irritate people. Avoid them.
这里提供了很多优点和缺点。
http://fuzzzyblog.blogspot.com/2009/09/disadvantages-of-using-frames.html

