简体   繁体   中英

Upright shape of font for text inside <i></i> tags in HTML

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM