scale fit mobile web content using viewport meta tag

前端 未结 7 1485
暗喜
暗喜 2020-11-29 17:44

I\'m trying to figure out how to leverage the mobile viewport meta tag to automatically zoom the contents of a HTML page to fit into a web view.

Constraints:

相关标签:
7条回答
  • 2020-11-29 18:15

    Try adding a style="width:100%;" to the img tag. That way the image will fill up the entire width of the page, thus scaling down if the image is larger than the viewport.

    0 讨论(0)
提交回复
热议问题