CSS iframe border IE问题

var IframeObj = document.createElement("iframe");
	    IframeObj.width =width;
	    IframeObj.height =height;
	    IframeObj.frameBorder = 0;//这里Border必须大写,否则没用
	    IframeObj.src=src;
		//IframeObj.style="border:0;padding:0;margin-right:30px";
		dojo.style(IframeObj,{"border":"0","padding":"0","marginRight":"30px","marginBottom":"30px"})
	    return IframeObj;

 

你可能感兴趣的:(iframe,css,IE,border)