\";?>\r\n\r\n\r\nfont-weight: bold; 효과를 주고싶으면 어떻게 해야하나요? ㅠㅜ\r\n","dateCreated":"2019-02-08T10:38:38+09:00","author":{"@type":"Person","name":"gnosuy"},"answerCount":2,"suggestedAnswer":[{"@type":"Answer","text":"\r\n\r\n처럼 $( document ).ready(function() { 를 추가해보세요.\r\n\r\n \r\n","author":{"@type":"Person","name":"티로그"},"dateCreated":"2019-02-08T13:54:50+09:00"},{"@type":"Answer","text":"$('#tab li:first-child a').css({color:'#fff', font-weight: bold });\r\n","author":{"@type":"Person","name":"잉끼s"},"dateCreated":"2019-02-08T10:40:02+09:00"}]}}

script 폰트볼드 효과 주는 방법

페이지 이동시 해당페이지에서 버튼효과를 아래와같이 넣었는데

 

<? if($bo_table == 51) { ?>
    <? echo "<script>$('#tab li:first-child a').css({color:'#fff'});</script>";?>
<? }?>

font-weight: bold; 효과를 주고싶으면 어떻게 해야하나요? ㅠㅜ

|

답변 2개 / 댓글 1개

<script>

$( document ).ready(function() {

$('#tab li:first-child a').css({color:'#fff', font-weight: bold });

});

</script>

처럼 $( document ).ready(function() { 를 추가해보세요.

 

$('#tab li:first-child a').css({color:'#fff', font-weight: bold });

답변에 대한 댓글 1개

안돼요 ㅠㅜㅠㅜ 다른 방법은 없나요?

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