How to make CSS visible only for Android phone UC browser -


is there way make css rules visible android phone uc browser?

take @ article: css: user agent selectors

basically, when use script:

var b = document.documentelement; b.setattribute('data-useragent',  navigator.useragent); b.setattribute('data-platform', navigator.platform ); b.classname += ((!!('ontouchstart' in window) || !!('onmsgesturechange' in window))?' touch':''); 

you can use css target browser / version.

so android uc, took here see user agent strings android uc , contained text 'ucbrowser' can following:

fiddle

html[data-useragent*='ucbrowser'] .somerules {     visibility: visible;/* or display:block etc */ } 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -