开发者

IFrame without scrollbars

I tried to attach another website to my current page using iframe, but it looks 开发者_如何学编程ugly with the scroll bars.

Is there any good alternative to it? Any suggestion to achieve what I want, nicely attaching another webpage into my page without the annoyance of those scrollbars?


Make height and width of iframe equal to your web page and if you want on a specific part of page then adding css overflow : none should help, and frameborder:0 will clean up frame borders..

Here is a good tutorial regarding scrolling


Change the height and width accordingly Try this

<iframe height="100%" frameborder="0" scrolling="no" width="500px" style="width: 500px; height: 100%;" src="http://example.com" allowtransparency="true"></iframe>


Or try to use a custom scrollbar like this one: Link


Ok I had the same problem and this jquery plugin solved this problem perfectly. http://plugins.jquery.com/project/iframe-auto-height

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜