Home > front end >  Pray god help - on js, CSS, vue, pictures can't quote all problems
Pray god help - on js, CSS, vue, pictures can't quote all problems

Time:09-19

First explain, a rookie, all kinds of information, the way to want to want to, but the way also cannot solve the problem,
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 directions

CodePudding 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 point

CodePudding user response:

refer to the second floor alone and wine with my colleague's reply:
browser cannot find the path in front of images, suggest trying the absolute path or relative path to write full point





Is it mean that I wrote to you still can't open it

CodePudding user response:

Resolved, the method is the Main HTML out UI directory directly down below the webapp, then remove the references to the "/" in front of all paths through the