Home > Web Front-end > Front-end Q&A > How to introduce css into jsp

How to introduce css into jsp

藏色散人
Release: 2023-01-06 11:15:53
Original
5704 people have browsed it

How to introduce css into jsp: 1. Introduce css through "external style"; 2. Introduce css through "internal style"; 3. Introduce css through "inline style".

How to introduce css into jsp

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>
Copy after login

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