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:
html[data-useragent*='ucbrowser'] .somerules { visibility: visible;/* or display:block etc */ }
Comments
Post a Comment