美文网首页
设置Safari 10.0.2阅读器Reader字体

设置Safari 10.0.2阅读器Reader字体

作者: 一片蓝枫 | 来源:发表于2017-01-16 15:21 被阅读0次

设置Safari 10.0.2阅读器Reader字体


关闭SIP(系统完整性保护功能)才能保存Reader.html

- 重启电脑,按住Command+R(直到出现苹果标志)进入Recovery Mode(恢复模式)

- 左上角菜单里找到实用工具 -> 终端

- 输入 $ csrutil disable 回车重启Mac即可。

- 如果想重新启动SIP机制重复上述步骤改用 $ csrutil enable --without debug即可。


Reader.html位置

/System/Library/PrivateFrameworks/SafariShared.framework/Versions/A/Resources/Reader.html

修改样式

//把宋体字改为adobe的仿宋字体

.songtitc { font-family: 'Songti TC'; }改为.songtitc { font-family: 'Adobe Fangsong Std R'; }

.songtisc { font-family: 'Songti TC'; }改为.songtisc { font-family: 'Adobe Fangsong Std R'; }

<style id="article-content">

h1, h2, h3, h4, h5, h6 {

       font-weight: bold;

}

h1 {

      font-size: 1.25em;

      line-height: 1.4em;

      border-bottom: 1px solid #333; //修改为下划线样式

}

...

</style>

#article * {

/* Scale down anything larger than our view. Max-width maintains aspect ratios on images. */

max-width: 100%;

line-height: 2em; //修改行间距

}

.page {

/* We don't want the lines seperating pages to extend beyond the primary text column. */

padding-left: 0px;

padding-right: 0px;

width: 850px; //固定宽度

margin-left: auto;

margin-right: auto;

}

相关文章

网友评论

      本文标题:设置Safari 10.0.2阅读器Reader字体

      本文链接:https://www.haomeiwen.com/subject/zxvztttx.html