safari html 字体设置,肿么在Safari下用css强制修改网页字体
可以用jquery來判斷:
var userAgent = navigator.userAgent.toLowerCase(); $.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase()); // Is this a version of Chrome?if($.browser.chrome){ userAgent = userAgent.substring(userAgent.indexOf('chrome/') +7); userAgent = userAgent.substring(0,userAgent.indexOf('.')); $.browser.version = userAgent; // If it is chrome then jQuery thinks it's safari so we have to tell it it isn't $.browser.safari = false;}// Is this a version of Safari?if($.browser.safari){ userAgent = userAgent.substring(userAgent.indexOf('version/') +8); userAgent = userAgent.substring(0,userAgent.indexOf('.')); $.browser.version = userAgent;}
取消
評論
總結
以上是生活随笔為你收集整理的safari html 字体设置,肿么在Safari下用css强制修改网页字体的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: qq个性签名四个字
- 下一篇: html代码闪烁的文字怎么打,HTML最