CSS to set the color

CSS to set the color

Embedded:

<Style> </ style>, i.e. after CSS style write </ title>, </ head> front, i.e. in the <head> </ head> inside, such as:

...

<head>

  <Title> p tag </ title>

  <Style type = "text / css"> .first {color: red;} / * set type, to facilitate the use of specific labels later * /

  </style>

</head>

...

<P class = "first";> My first paragraph </ p> / * the name of the class and add the tag to the particular use later * /

Inner fitting formula:

<P style = "color: red"> My first paragraph </ p>   

/ * Styles can be added directly behind the label, of course, based on the principle of proximity stacked, "my first paragraph," will give priority to turn red. * /

Guess you like

Origin www.cnblogs.com/iBoundary/p/11413952.html