Good to all. There is a code:

<link rel="stylesheet" href="auto_complite_input_text/jquery-ui.css"> 

If you just open in the browser, then everything is fine. If you open through the web-server (apach to Denwer), then the path is lost. If you write this:

 <link rel="stylesheet" href="/auto_complite_input_text/jquery-ui.css"> 

/ - home directory does not help either.


It remains to prescribe the full path:

 <link rel="stylesheet" href="http://cleric-work/auto_complite_input_text/jquery-ui.css"> 

Then everything works. Why it happens?

  • What is the address of the page with this code? Look in the developer tools in the browser what queries are being executed. - Athari
  • Absolute way to write is not easier? - Cone Enoc
  • Update: If you open the code from the browser Ctrl + U, then there is a connection (the browser sees files), and when you look at the debager, you can see that there are no CCS elements. @Discord address - it lies at the root. - I_CaR
  • Develop under this server, for example, openserver. You will never defeat the conflict of absolute and relative paths, working on the basis of the file system, then on the basis of the server. - etki
  • Well, you can still try this - ../ or ../../ here you need to look along the way - Goshka Tarasov

1 answer 1

The answer was this!
It:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 

Replaced with this:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 

And it all worked!
PS Brad some. Week tormented.

  • 3
    This doctype has long been outdated. - etki
  • one
    Correct modern DOCTYPE (HTML5): <!DOCTYPE html> . - Marat Tanalin
  • I see, you just have to, as in the early 2000s: <html> and that's it - I_CaR