开发者

Is it wrong to use iframes in the following scenario

I have a tree structure, that is dynamically added to by the user. This works ok, and I was planning to add it to my page. The only function it serves is to allow 开发者_运维百科the user to edit or add extra content to the tree view. However, I found that I could just put it in an iframe rather than add to my page the normal way. I have convinced myself, that this is wrong, for some reason. However, it seems to work better and faster this way. Am I wrong to dismiss using iframes. I seem to have thought of them as some sort of hack that beginners use.


If SEO is important to you, putting it in an iframe is a really bad idea.


Without seeing code, it's hard to imagine how an iframe could possibly be easier. Either way, you're just setting yourself up for future pain if you use an iframe. Javascript between your frames will be needlessly fragile and complicated. This is definitely not the place for iframes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜