문제

I'm using this code to embed a page into my website at 1300x700 pixels

<iframe src="http://example.com"
    width="1300" height="700"></iframe>

Is there a way I can make it stretch or shrink to match the size of the browser window? (preferably with -30px at the top for the navbar, currently have this set up with css)

도움이 되었습니까?

해결책

use percentages for width/height instead, and then use pixels to set the margin with the navbar

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