Style sheet learning

xiaoxiao2021-03-06  35

The style sheet includes a selector. Normally, the selector is the name of this element, followed by style information. This is called rule rule. The last one of the styles can not be used. However, in order to insert the style code, the web designer should use the semicolon at the end of each style property.

Embed an external style file in the web page

REL indicates that the interrelation is a style sheet, then the HREF property is the URL address used to specify the style sheet file. TYPE is set to MIME (Multipurpose Internet Mail Extensions, multi-purpose Internet Mail Extension) Type Text / CSS This value is set to the style table of the link is CSS. Of course, other forms of style can be connected. In order to avoid using the type attribute again, you can set a default style language type by in the element.

To put the style sheet in

The use of the style sheet is divided. 1. Reference Style Files ·, @ Import URL (Corelules..css) 2 Embedded style file 3 direct input style table content

转载请注明原文地址:https://www.9cbs.com/read-66097.html

New Post(0)