美文网首页
趣启蒙字幕高亮编辑原则

趣启蒙字幕高亮编辑原则

作者: 晖仔Milo | 来源:发表于2020-09-20 16:49 被阅读0次

对于字幕指定高亮,我们提供标准、简写两套方案。两套方案之间各有所长。

优缺点对比:
标准方案:支持在线预览(预览地址:http://www.jsons.cn/htmldebug/),但编写略为复杂
简写方案:不支持在线预览,编写简单

示例一:Shall I compare thee to a summer’s day?

对all进行高亮
标准方案:
Sh<font color="green">all</font> I compare thee to a summer’s day?
简写方案:
Sh<color="green">all</color> I compare thee to a summer’s day?

预览方式:复制标准方案内容到 http://www.jsons.cn/htmldebug 即可预览

image.png
image.png

示例二:So long lives this, and this gives life to thee.
对and this gives 进行不同对高亮,and gives 显示绿色高亮, this 显示红色
标准方案:
So long lives this, <font color="green">and</font> <font color="red">this</font> <font color="green">gives</font> life to thee.

千万不能写成:
So long lives this, <font color="green">and <font color="red">this</font> gives</font> life to thee.
也许预览时样式正确,但手机上就无法正确的渲染出红色的 this 咯。

简写方案:
So long lives this, <color="green">and</color> <color="red">this</color> <color="green">gives</color> life to thee.

相关文章

网友评论

      本文标题:趣启蒙字幕高亮编辑原则

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