今天遇到一个在页面中有button跳转指定的iframe问题,大家都知道跳转指定的iframe必须指定一个target,然而button没有这个属性。
试了很多方法都不行,最后才发现在要跳转的<head></head>之间加上<base target="main">这段话就行了。
今天遇到一个在页面中有button跳转指定的iframe问题,大家都知道跳转指定的iframe必须指定一个target,然而button没有这个属性。
试了很多方法都不行,最后才发现在要跳转的<head></head>之间加上<base target="main">这段话就行了。
转载于:https://www.cnblogs.com/laihuayan/archive/2011/11/18/2253561.html