국비 36일차_2

강지수·2024년 2월 2일
0

국비교육

목록 보기
70/97
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery-3.7.1.min.js"></script>
</head>
<body>
    <style>
        div{
            width: 60px;
            height: 60px;
        }
    </style>
    <div id="div1" style="background-color: green;"></div>
    <button id="button1">css(ele)</button>
    <button id="button2">css(ele,style)</button>
    <script>
        $(document).ready(function(){
            $("#button1").click(function(){
                var color=$("#div1").css("background-color");
                $("#result").text("bgcolor:"+color);
            });
            $("#button2").click(function(){
                $("#div1").css("background-color","red");
            })
        });
    </script>
    <p id="result">결과 표시</p>
</body>
</html>

버튼1 을 누르면 배경색 값이 나오고, 버튼 2를 누르면 색이 바뀜


clone coding 계속..


Git 미션

branch 나눠서 commit 하고 merge 하는 연습
repository 새로 만들어서 push 하고 링크 올리기

https://github.com/cpu624049/day21_gittest


팀원이 정해짐, 7명씩 총 2팀

남은 시간은 팀 회의 진행 예정


profile
개발자 준비의 준비준비중..

0개의 댓글