返回列表 发帖

[经验交流] TW6强制设置页面字体的方法

没什么技术含量,和之前chrome的方法一样。XP:
系统盘符\Documents and Settings\用户名\Local Settings\Application Data\TheWorld6\User Data\Default\User StyleSheets

WIN7:
系统盘符\Users\用户名\AppData\Local\TheWorld6\User Data\Default\User StyleSheets

打开custom.css
输入
@charset "utf-8";
body * {        font-family: "Microsoft YaHei","weiruanyahei",Tahoma,SimSun !important;
* {text-shadow: silver 0px 0px 0px !important;}

就会强制全部变成雅黑了(前提是fonts文件夹里有雅黑)。打开百度页面即可测试,因为原来指定了宋体
sssssss8.png

谢谢!试试看
常念阿弥陀佛

TOP

技术高手,学习了

TOP

不知道有没有CSS的去广告呀

TOP

淘宝依然乱码

TOP

字改大点怎么改

TOP

自己已经解决了

TOP

win8的找不到路径啊

TOP

回复 23# moccolon


    太好了

TOP

好贴啊····果真 是这样的哦

TOP

感觉没必要

TOP

  1. @charset "utf-8";
  2. @font-face { font-family: Simsun;unicode-range: U+2E80-FFFF; src: local('微软雅黑')}
  3. @font-face { font-family: Simsun;unicode-range: U+0000-2E7F; src: local('Segoe UI')}
  4. @font-face { font-family: NSimsun;unicode-range: U+2E80-FFFF; src: local('微软雅黑')}
  5. @font-face { font-family: NSimsun;unicode-range: U+0000-2E7F; src: local('Segoe UI')}
  6. @font-face { font-family: Simhei;unicode-range: U+2E80-FFFF; src: local('微软雅黑')}
  7. @font-face { font-family: Simhei;unicode-range: U+0000-2E7F; src: local('Segoe UI')}
  8. @font-face { font-family: '宋体';unicode-range: U+2E80-FFFF; src: local('微软雅黑')}
  9. @font-face { font-family: '宋体';unicode-range: U+0000-2E7F; src: local('Segoe UI')}
  10. @font-face { font-family: '新宋体';unicode-range: U+2E80-FFFF; src: local('微软雅黑')}
  11. @font-face { font-family: '新宋体';unicode-range: U+0000-2E7F; src: local('Segoe UI')}
  12. @font-face { font-family: '黑体';unicode-range: U+2E80-FFFF; src: local('微软雅黑')}
  13. @font-face { font-family: '黑体';unicode-range: U+0000-2E7F; src: local('Segoe UI')}
  14. /* 分别替换,宋体,新宋体,黑体为微软雅黑 */
  15. @font-face { font-family: monospace;unicode-range: U+2E80-FFFF; src: local('YaHei Consolas Hybrid')}
  16. @font-face { font-family: 'monospace';unicode-range: U+2E80-FFFF; src: local('YaHei Consolas Hybrid')}
  17. @font-face { font-family: Consolas;unicode-range: U+2E80-FFFF; src: local('YaHei Consolas Hybrid')}
  18. @font-face { font-family: Lucida Console;unicode-range: U+2E80-FFFF; src: local('YaHei Consolas Hybrid')}
  19. /* 替换常见的等宽字体 */
复制代码

TOP

返回列表