CSS没有链接到xHTML

Rya*_*n_K 0 css xhtml linker

虽然我多次访问过这个网站,但这是我的第一个问题.

经过几个小时的google-foo无济于事,我无法将我的样式表链接起来.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

<html xmlns=”http://www.w3.org/1999/xhtml” lang=”en” xml:lang=”en”>
<head>

    <title>Newb Development</title>

    <link type=“text/css” rel="stylesheet" href=”\master.css” />

</head>

<body>

    <img src="banner.gif" alt="NewbDev Logo" title="Newb Development" />
    <h1>Welcome To NewbDev.com</h1>

    <h2>Under Construction</h2>
    <p>
    As you can see, we are currently under construction.  Upon completion
    of the website you will be able to follow a fellow newb developer
    on his journey to <em>programming masterification!</em>
    </p>

</body>
Run Code Online (Sandbox Code Playgroud)

文件"master.css"位于同一目录中.我已经在计算机和服务器上尝试过它,我的样式不适用.我知道我没有在这里发布的样式表,但它没什么特别的,我很肯定样式表的内容不是问题.

Que*_*tin 5

文件"master.css"位于同一目录中.

所以你应该href="master.css"没有href="/master.css"href="\master.css".

还要注意引号,你需要"'没有.(您可能需要放大以查看差异):

" ' ”

验证便拿起那最后一个问题.