Several methods of using css in the webpage are briefly introduced, and css is briefly introduced.
Several methods of using css on the webpage are described as follows:
Css can be said to be necessary in the current webpage. If css is not used, this webpage is generally ugly and hard to imagine. The following describes several methods for using css on the webpage, I hope it will be helpful for beginners.
1. inline style:
The so-called inline style is to unmount the style within the label. The Code is as follows:
<div style="color:red;font-size:10px"></div>
That is, the style method is used to specify the div style in the label.
Ii. Internal style sheets:
The internal style sheet is written on the current page rather than introduced from the outside. The Code is as follows:
<! DOCTYPE html>
The preceding Code uses <style type = "text/css"> </style> to specify an internal style sheet.
Iii. External style sheets:
The external style sheet corresponds to the internal style representation, that is, an external style sheet file is introduced on the current page, rather than the style code uninstalling the current page.
<link href="css/style.css" rel="stylesheet" type="text/css" />
Original address: http://www.51texiao.cn/HTML5jiaocheng/2015/0613/4140.html
The original address is: http://www.softwhy.com/