The key “target densitydpi” is not supported

Run a web page and find the key “target density Pi” is not supported in the log

After checking the relevant information, it is found that the target densitydpi attribute has been abandoned. Specific reference https://petelepage.com/blog/2013/02/viewport-target-densitydpi-support-is-being-deprecated/

“Support for target densitydpi in the viewport meta tag was recently removed from WebKit and with chrome for Android moving forward to current revisions on WebKit, this change is now rolling out in Android.”

In other words, target density PI has been enabled.

At the same time, this blog also gives people a usage, that is, in WebKit, if you need to put target density DPI = device DPI.

My strategy is simpler. When I find that target density Pi is useless in the web page, I delete the relevant attributes directly in the web page.

Read More: