如何使用iframe无缝嵌入

3,619 阅读1分钟

做项目过程中,遇到在页面嵌入客户机器人的需求,但是使用iframe嵌入的过程中,发现一些嵌入显示不完整、显示iframe边框等问题,经过不断尝试与总结,发现使用iframe无缝嵌入的方法如下:

<iframe            src="http://xxx.com"             width="520"            height="400"            id="iframe"            frameBorder="0"            scrolling="no"            marginHeight="0"            marginWidth="0"          />

高度和宽度可以根据嵌入页面的情况而定。