Widget - Iframe versus JavaScript

后端 未结 6 846
面向向阳花
面向向阳花 2020-12-22 23:16

I have to develop a widget that will be used by a third party site. This is not an application to be deployed in a social networking site. I can give the site guys a link to

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-22 23:54

    The big plus of iframes: all CSS and JS is separated from the host page, so your existing CSS just works. (If you want the host site to style your content to fit in, that's a minus of course.)

    The big minus of iframes: they have a fixed width and height and scroll-bars will appear if your content is larger.

提交回复
热议问题