[英]Upright shape of font for text inside <i></i> tags in HTML
The text inside HTML tag pair <i>
</i>
becomes italic. HTML标记对<i>
</i>
内的文本变为斜体。 Is it a way to make a part of it non-italic, revert an upright shape of font?有没有办法让它的一部分变成非斜体,恢复字体的直立形状? Something like \\textup
command in LaTeX :类似于LaTeX 中的\\textup
命令:
<i>Long italic text <upright>small upright part</upright> italic text again</i>
试试这个,它会解决你的问题。
<i>Long italic text <upright style="font-style: normal;">small upright part</upright> italic text again</i>
Simply define it to work that way:只需将其定义为以这种方式工作:
upright { font-style:initial; }
<i>Long italic text <upright>small upright part</upright> italic text again</i>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.