简体   繁体   中英

Chrome-extension in production looks different than in development. WHY?

Im creating an Angular2 Chrome-extension App.

It looks great when I created it in production.

在此处输入图片说明

However, this is how it looks when I upload it as a chrome-extension in development mode (Look at the logo and buttons).

在此处输入图片说明

The logo SHOULD be 75px (which it is in development), however in production it decides to be 87px even if the chrome tools tell me its 75px...

The same happens with the buttons.

Am I doing something wrong?

I did add the

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

tag.

It seems like chrome is taking over control of the viewport?

请检查chrome的缩放设置,并确保您的字体大小以px而不是em的形式显示,因为chrome扩展名在开发时不会复制em的大小。

Check out your 'zoom' setting in Chrome. (CTRL+MOUSESCROLL)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM