android - css3在webview中的兼容性问题
PHP中文网
PHP中文网 2017-04-17 14:32:46
0
2
605

html5页面用Android webview打包成app,以上一段css3代码在个别Android机型上不生效(特别是三星某些幸好).

我的问题:


移动h5开发,是不是必须在css3属性前加上所有的兼容性前缀 例如 -o- -moz- -webkit-?

移动浏览器以及微信的内核是不是都基于webkit的?

希望知道的帮忙解答一下,谢谢!
PHP中文网
PHP中文网

认证0级讲师

reply all(2)
Peter_Zhu

Not necessarily a compatibility prefix issue.
The webkit of the mobile version is different from the core of the PC version in some functions.
The mobile version blocks certain functions to adapt to the model (those that consume too much performance will not run on low-end machines!). That is to say, castration...
The above mentioned are at the system level, and there are many things that developers need to pay attention to when enabling webview at the application level.
It is also optimizing application usage scenarios and machine performance. Developers will also give up some performance

Take Tencent’s X5 core as an example. It is simply the IE6 of the mobile world. In order to adapt the entire platform to Android models, many performance-consuming functions are either abandoned or reduced in effect...

伊谢尔伦

Most mobile browsers and embedded browsers are based on webkit, but there are also browsers such as Opera and Firefox. It is best to write the prefix.
Webview’s support for CSS3 will vary depending on the support of different mobile phones and different mobile phone systems.
Try to use commonly supported attributes~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!