How to use css in myeclipse

藏色散人
Release: 2023-01-03 09:23:45
Original
3442 people have browsed it

Myeclipse uses css method: first click "file-new-other"; then find the web project and click next; then enter "project name" in the pop-up box and click finish directly; finally in the new jsp page Just add the code in the middle of the head.

How to use css in myeclipse

#The operating environment of this tutorial: Windows 7 system, Dell G3 computer, CSS3 version.

How to use css in myeclipse?

Just import css3 into the jsp page of Myeclipse normally. Myeclipse is just a development tool. Steps to create a new jsp page in Myeclipse:

1. Click file - new - other

2. Find the web project and click next

3. Enter the project name in the pop-up box and click finish

4. Add it in the head of the new jsp page Code

(Related course recommendations: css video tutorial)

<link href="css/main.css" rel="stylesheet" type="text/css" />
Copy after login

Or you can write like this

<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/main.css">
Copy after login

In other words, <%=request. getContextPath()%>/ always represents the root of the directory, and for the rest, just write the folder names layer by layer

The above is the detailed content of How to use css in myeclipse. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template