So here the problem statement, please everyone a great god help me solve the
A.net project all HTML files related maven project in eclipse, nothing has changed, but the. Net access is normal in the show, can be in eclipse is the following appearance
All the js, CSS, and images all reference failure
First of all to give bosses have a look at the file path and the hierarchy relationship, I placed in eclipse hierarchy is not very sure, but in the. Net, such there is no question of hierarchy
Then I start the tomcat, run been like presents the above web page HTML
In order to prevent the.net and Java format differences in question, the part of the home page code below for everyone to see
To find a better solution to the problem, none of the works, and I don't know is I didn't find the root of the problem, or to give a big understanding does not reach the designated position, the explanation of improper operation
Finally found a place in my point of view is the fundamental problem, is found on the display of the picture, draw a diagram to explain
First run directly as pictures, show normal
But the copy and paste the url into a browser is embarrassing
Really don't know how to solve it, by myself a person, doesn't even have a q man, look for two days, head to see big, I can think of to have tried, but it is not solve,, every brother please help answer, may be a problem where to familiar people too simple, but the really powerless, also please don't laugh
CodePudding user response:
Consider the cause of the hierarchy problems from the start, but tried several kinds of hierarchy, never to try out the correct results, still ask everybody to give directionsCodePudding user response:
Browser cannot find the path in front of images, it is suggested that attempt to absolute path, or a relative path to write the whole pointCodePudding user response: