2017-01-21 7 views
0

내가 잘못하고있는 것이 있습니까? 최소한 1,000 번 이상 코드를 확인 했어야합니다! 나는 심지어 그것을 놓친 것인지 확인하기 위해 그것을 확인했다. 두 HTML 파일과 CSS 파일은 같은 폴더에 있고 그것은 내가 연결되지 않거나 작동하지 않기 때문에 내 CSS 코드가 잘못되었다는 이디어있어 적절하게HTML 파일이 내 CSS 파일에 연결되지 않습니다

<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="UTF-8"> 
    <!-- Zlimoli --> 
    <title> Zlimoli Project </title> 
    <meta name="description" content="type the content description here" /> 
    <meta name="keywords" content="type, keywords, here" /> 
    <link rel="stylesheet" href="music.css" type="text/css" /> 
    <style type="text/css"> 
    </style> 
</head> 

을 지명했다.

CSS 코드 :

p.color1 {color: lime;} 
h1.align {text-align: center;} 
<!-- Zlimoli Project --> 

그리고 이것은 그것이 내가 그것을 적용 할 때 모습입니다가 :

<h1 class="align"> Zlimoli Project </h1> 
<p class="color1"> Sample Text Here </p> 
+0

http://test-cases.dorward.me.uk/stackoverflow/41781017/을 - 나는 문제 – Quentin

+1

을 재현 할 수없는''는 유효한 CSS 주석이 아닙니다. '/ * Zlimoli Project * /'는 맞을 것이다. – jlowgren

+0

어떤 URL을 찾고 계십니까? 'href = "music.css"는 상대 경로입니다. –

답변

0

당신은 <style> 태그를 잘못 쓴, 스타일 태그를 제거하려고합니다.

> <!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="UTF-8"> 
    <!-- Zlimoli --> 
    <title> Zlimoli Project </title> 
    <meta name="description" content="type the content description here" /> 
    <meta name="keywords" content="type, keywords, here" /> 
    <link rel="stylesheet" href="music.css" type="text/css" /> 

</head> 
0

제거 스타일 태그 떠나 <link rel="Stylesheet" href="music.css" type="text/css"> : D

관련 문제