In CSS, you can use the font-style attribute to remove the italic style. You only need to set the "font-style: normal;" style to the element. The font-style attribute can specify the font style of text. When the value is set to "normal", the browser displays a standard font style.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
In HTML, the i tag comes with italic style by default
正常字体
测试字体
Rendering:
How to remove it Italic style for i tag?You can use the font-style attribute, syntax:
i{ font-style: normal; }
Rendering:
##css font-style attribute
The font-style attribute specifies the font style of the text. Attribute value:Description | |
---|---|
default value. The browser displays a standard font style. | |
The browser will display an italic font style. | |
The browser will display an oblique font style. | |
Specifies that the font style should be inherited from the parent element. |
css video tutorial)
The above is the detailed content of How to remove italic style in css. For more information, please follow other related articles on the PHP Chinese website!