The text inside HTML tag pair <i>
</i>
becomes italic. Is it a way to make a part of it non-italic, revert an upright shape of font? Something like \\textup
command in LaTeX :
<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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.