iframe框架是非常不利于seo的,所以我们要将框架使用js来写出,这样百度就不会发现。
js代码最好加密后调用。
var url = 'http://www.zhizhuowz.com'; window.document.write("<style>html,body{width:100%;height:100%;overflow:hidden;}</style>"); window.document.write('<div style="height:100%;position:absolute;top:0;left:0;right:0;background:#fff;z-index:100000">'); window.document.write('<iframe src="' + url + '" frameborder="0" style="width: 100%; text-align:center;height:100%;"></iframe>'); window.document.write("</div>");
发表评论: