How to introduce css into jsp: 1. Introduce css through "external style"; 2. Introduce css through "internal style"; 3. Introduce css through "inline style".
The operating environment of this article: Windows 7 system, CSS3 version, Dell G3 computer.
How to introduce css into jsp?
1. External styles
When styles need to be applied to many pages, external style sheets will be the ideal choice. With external style sheets, you can change the look of your entire site by changing one file. Each page links to the style sheet using the tag. The tag is in the head (of the document):
<head> <link rel="stylesheet" type="text/css" href="path/myCss.css"/> </head>
2. Internal style
When a single document requires a special style, it should Use internal style sheets. Internal style sheets can be defined at the head of the document using the