Home >Web Front-end >CSS Tutorial >How to remove the italic style of i in css

How to remove the italic style of i in css

青灯夜游
青灯夜游Original
2021-11-10 16:11:026344browse

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;}".

How to remove the italic style of i in css

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>

How to remove the italic style of i in css

So if I want to remove the italic style of the <i></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>
	

How to remove the italic style of i in css

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn