Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用style.css制作网页?_Css - Fatal编程技术网

如何使用style.css制作网页?

如何使用style.css制作网页?,css,Css,我已经在服务器上上传了我的网页,但是如果我从浏览器中保存我的网页,并且当我打开网页时,style.css不会激活。。。如何将active style.css导入我的网站? 我用这个, 使用Firefox扩展FireBug调试代码并定义问题 如果这不起作用,请告诉我们您的样式表的文件夹结构。查看此内容并检查您的路径 案例1 |-style.css |-index.html <link rel="stylesheet" href="style.css" type="text/c

我已经在服务器上上传了我的网页,但是如果我从浏览器中保存我的网页,并且当我打开网页时,style.css不会激活。。。如何将active style.css导入我的网站? 我用这个,


使用Firefox扩展FireBug调试代码并定义问题



如果这不起作用,请告诉我们您的样式表的文件夹结构。

查看此内容并检查您的路径

案例1

|-style.css     
|-index.html

<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>
|-style.css
|-index.html
案例2

|-style.css     
|-folder
        |-index.html

<link rel="stylesheet" href="../style.css" type="text/css" media="screen"/>
|-style.css
|-文件夹
|-index.html
案例3

|-css 
      |-style.css       
|-folder
        |-index.html

<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen"/>
|-css
|-style.css
|-文件夹
|-index.html

你知道这是什么意思。/style.css是指它在当前文件夹的父文件夹中。你的html文件和style.css文件在哪里?
|-css 
      |-style.css       
|-folder
        |-index.html

<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen"/>