html - How do I set a custom viewport for an iframe? -
okay. actually, maybe title makes no sense.
please read:
i want create iframe custom width. okay. please try understand.
i don't want iframe responsive (the site embedded in iframe responsive) , want appear shrunk picture.
i can give examples if wish. idea how this?
if have tried width
attribute , didn't work, try using css' max-width
property.
example,
index.html
<iframe src="http://www.google.com/" class="if"></iframe>
style.css
.if { max-width: 100px; }
Comments
Post a Comment