问题
I wanted to add OnePlus 3 and OnePlus 5 as custom devices in the emulated devices list of Google Chrome. Please provide the viewport size so that I can test my website with it.
Example for pixel 2 display dimentions
Thanks in Advance
回答1:
I was searching for the same thing and I found this: https://www.mydevice.io/
OnePlus 5: 455x809
, pixel ratio 2.375
, user agent Mozilla/5.0 (Linux; Android 8.1.0; Build/OPM1.171019.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Mobile Safari/537.36
I don't have an OnePlus 3 and I didn't found anything related.
回答2:
OnePlus 3: 412x732, pixel ratio: 2.625
回答3:
The OnePlus 3 uses a 346x535. Not a standard one as far as I can see, with all the consequences it brings in.
来源:https://stackoverflow.com/questions/50207552/oneplus-3-oneplus-5-viewport-size-for-chrome-emulated-devices