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.
#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" />
Or you can write like this
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/main.css">
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!