In CSS, you can use the font-style attribute to remove the italic style of the i tag. You only need to set the value of this attribute to "normal" to allow the browser to display a standard font style. The syntax "i {font-style: normal;}".
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
<i> </i>
Define a part that is different from the rest of the text and render this part of the text in italics.
<div>欢迎来到 <i>PHP中文网</i>!</div>
So if I want to remove the italic style of the <i>
tag, what should I do?
is actually very simple. Just use the font-style
attribute. Setting the value to normal
allows the browser to display a standard font style.
<div>欢迎来到 <i>PHP中文网</i>!</div>
Description: The
font-style attribute specifies the font style of the text. Attribute values that can be set:
#normal Default value. The browser displays a standard font style.
italic The browser will display an italic font style.
oblique The browser will display an oblique font style.
(Learning video sharing: css video tutorial)
The above is the detailed content of How to remove the italic style of i in css. For more information, please follow other related articles on the PHP Chinese website!