채택완료

php에는 style가 안먹히나요?

2014-08-07 (목) 22:17:42 4,212

htm로 작업했을때는 마우스를 갖다대도 스타일이 먹혀서 밑줄이 안나타나게됬는데요,

1eec460fbc31792696ad9fdc421a2b4a_1407417416_5802.JPG
 

php로 작업하니 스타일이 안먹히고 밑줄이 나오더라구요..

php는 원래 스타일이 안먹히나요?

1eec460fbc31792696ad9fdc421a2b4a_1407417419_0887.JPG

head랑 head사이에 넣었던 style.

 <style>

@import url(http://fonts.googleapis.com/earlyaccess/nanumgothic.css);

* {font-family:'Nanum Gothic', sans-serif;}

<style type="text/css"> 

<!-- 

a:link, a:visited, a:active, a:hover { text-decoration: none;} 

--> 

</style>

|

답변 2개

채택된 답변
+20 포인트
2014-08-07 (목) 23:59:30

모지 STYLE 안에 또 STYLE 이 들어 같네요??

아래와 같이....

<style type="text/css">  

<!-- 

* {font-family:'Nanum Gothic', sans-serif;}

a:link, a:visited, a:active, a:hover { text-decoration: none;} 

@import url(http://fonts.googleapis.com/earlyaccess/nanumgothic.css);

--> 

</style>

2014-08-08 (금) 07:45:02

</style>가 빠졌습니다.

<style type="text/css"> 위에 </style>를 넣어주시던지 이천이지님처럼 하나의 스타일로 구성하심 되겠네요.  

답변을 작성하려면 로그인이 필요합니다.