문제

I am trying to fit the contents of the webpage into an iframe whose dimensions are fixed.

I need to resize the page such that the complete page fits in the given dimensions of the iframe without truncation.

And I do not need scrollbar, the page should fit without a scrollbar.

I have tried something like this, but didn't work.

<iframe width="650" height="350" src="http://www.bbc.co.uk" style="-ms-transform: scale(,);"></iframe>
도움이 되었습니까?

해결책

I'm afraid you cannnot. you options would be use site speicfic css to reduce the size of elements.

if you don't want scroll-bars try overflow:hidden css property.

Check this stack overflow duplicate

다른 팁

As given dimensions of iframe , you don't need scroll bar , So just add scrolling="no"

Check this

<iframe width="650" height="350" scrolling="no" src="http://www.bbc.co.uk"></iframe>

Preeti Chawla, Web developer

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top