📕
HTML
  • Course Materials
  • Tools for web basic
  • CodePen Examples
  • WEB1101
    • Rundown1101
    • Video Tutorials
    • Slides
  • HTML and CSS
    • HTML
    • CSS - basic
    • CSS - Object Decoration
    • CSS - Media Query
    • CSS-background-fixed
    • Positioning-sticky
    • Bootstrap
      • Grid and spacing
      • Useful Components
      • Component Cheatsheet
  • jquery
    • jquery basic
    • stick top
    • Progress-status bar
    • Parallax Scrolling
  • Design
    • Works by sketching
    • Movie Control
  • Case Studies
    • Great-cases
      • The Snow Fall
    • Case Studies by students
    • TW Digital 2019
    • Graphic Novel
    • Infographic
    • Ideas bottom-up by skills
    • News media outlet
  • Web1091
    • Student works 1091
    • Rundown1091
  • Appendix
    • The Color
    • File directory (Path)
    • Deployment
  • Data journalism
    • Data-Driven News Reports
Powered by GitBook
On this page

Was this helpful?

  1. Appendix

File directory (Path)

在程式碼中,你看到如下的檔案連結,意味著這個html檔連結到main.css這個檔案。

<head>
    <title>your website title</title>
    <link rel="stylesheet" type="text/css" href="css/main.css">
</head>

可能的情形有以下三種

  • 同層 href = “main.css”,這樣代表你這個html檔所要存取的是跟他同一個資料夾底下的main.css檔。

  • 下n層 href=“css/main.css”,這樣代表你這個html檔所在位置有一個css資料夾,而你要存取的事那個css資料夾裡的main.css檔。

  • 上一層 href=“../css/main.css”,這樣代表,你這個html檔所在的位置的上一層資料夾裡面,有一個css資料夾,裡面有個main.css檔。

PreviousThe ColorNextDeployment

Last updated 4 years ago

Was this helpful?