最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Resize popup.html in chrome extension - Stack Overflow

programmeradmin9浏览0评论

I have this chrome extension that shows some content in the popup.html. As the content changes at "run-time" the popup.html sizes change too, expanding where there's more content to show. The problem that I have is that the popup.html don't resize itself back according to a smaller content. How can I do that?

I have this chrome extension that shows some content in the popup.html. As the content changes at "run-time" the popup.html sizes change too, expanding where there's more content to show. The problem that I have is that the popup.html don't resize itself back according to a smaller content. How can I do that?

Share Improve this question asked Feb 29, 2012 at 11:55 AdvicerAdvicer 1,3301 gold badge15 silver badges26 bronze badges 1
  • if necessary i can post some screenshots to explain better – Advicer Commented Feb 29, 2012 at 11:56
Add a ment  | 

2 Answers 2

Reset to default 24

Add <!DOCTYPE html> to the very beginning of the popup.html - it looks like you've forgotten to add it

I had a pesky CSS line:

body {
  min-height: 100vh;
}

in my popup's CSS and removing it made the popup auto-resize itself again.

发布评论

评论列表(0)

  1. 暂无评论