2010-01-22 34 views
1

./CoverFlows_files/coverflow.js是什麼意思?任何人都可以指向一個鏈接,描述了什麼樣的網址(點)是什麼意思?

我明白../CoverFlows_files/coverflow.js手段[​​上升一個目錄] 而/CoverFlows_files/coverflow.js手段[​​從這裏走下來]

也就是有辦法去根像在asp.net其~/ ...?

我沒有其他的事情很明白是哪裏放

<link rel="stylesheet" type="text/css" href="CoverFlows_files/coverflow.css"> 

<SCRIPT type="text/javascript" src="./CoverFlows_files/coverflow.js"></SCRIPT> 

做這兩個標記在頭部或身體去或者它沒有關係?

我想如果任何人有一個鏈接到一個網頁,超越這些基本主題,這將是非常有用的。

問候 PQ

回答

2

路徑不是在「web的僅用於環境「,所以我會盡力解釋它,但進一步。 (我將使用語法如下:where we are + what path we type = what's the absolute path

  • ./path/to/file搜索僅在本字典:
    • /home/crozin + ./path/to/file = /home/crozin/path/to/file
    • http://blah.com/support/ + ./path/to/file = http://blah.com/support/path/to/file
  • /path/to/file是絕對路徑:
    • /home/crozin + /path/to/file = /path/to/file
    • http://blah.com/support/ + /path/to/file = http://blah.com/path/to/file
  • path/to/file在每個目錄中搜索從include_path(OS變量)。因此,如果include_path設置爲:.;/home/crozin;/tmp然後它會在搜索:
    • /home/crozin + path/to/file = ./path/to/file/home/crozin/path/to/file/tmp/path/to/file
    • http://blah.com/support/ + path/to/file = http://blah.com/support/path/to/file(如第一示例基本相同)

...: url(...)總是使用絕對路徑。在「網絡環境」中,這是最簡單的風格。

4

./意味着當前目錄

CoverFlows_files/coverflow.css./CoverFlows_files/coverflow.css基本上相同

/CoverFlows_files/coverflow.css是從域名絕對路徑

對於實施例http://yoursite.com/CoverFlows_files/coverflow.css相同/CoverFlows_files/coverflow.css

關於樣式表和腳本,你可以把它放在任何地方

但好的做法,以加快您的網站是

Put Stylesheets at the Top

Put Scripts at the Bottom

相關問題