Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.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
将2个不同的html页面链接到2个不同的css文件_Html_Css - Fatal编程技术网

将2个不同的html页面链接到2个不同的css文件

将2个不同的html页面链接到2个不同的css文件,html,css,Html,Css,我正在使用dreamweaver创建一个网站,在将css文件链接到html页面时遇到了一个问题 在这个站点中,index.html链接到style.css并且工作正常,但是当我将页面Products.html链接到styleproducts.css时,html页面似乎没有链接到任何样式页面。 我已将style.css和styleproducts.css放在名为“css”的文件夹中,并将Products.html放在名为“pages”的文件夹中。 以下是Product.html中编写的链接代码:

我正在使用dreamweaver创建一个网站,在将css文件链接到html页面时遇到了一个问题

在这个站点中,index.html链接到style.css并且工作正常,但是当我将页面Products.html链接到styleproducts.css时,html页面似乎没有链接到任何样式页面。 我已将style.css和styleproducts.css放在名为“css”的文件夹中,并将Products.html放在名为“pages”的文件夹中。 以下是Product.html中编写的链接代码:

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


任何帮助都将不胜感激

你的路径错了试试这个

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


您的Product.html位于另一个文件夹中。因此,您需要将文件夹保留为“./”,然后输入“css”

您的路径错误,请尝试此操作

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

您的Product.html位于另一个文件夹中。因此,您需要将文件夹保留为“./”,然后输入“css”