js/jQuery
//지정내용, 그리드 제목 없애기 / jQuery_css
sucun
2022. 6. 14. 02:25
/* <div id="red"></div>
<div id="green"></div>
<div id="blue"></div> */
#red{
background-color: red;
width:20px;
height:20px;
border-radius: 20px;
}
#green{
background-color: green;
width:20px;
height:20px;
border-radius: 20px;
}
#blue{
background-color: blue;
width:20px;
height:20px;
border-radius: 20px;
}
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script defer src="./index.js"></script>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<h1>title</h1>
<div id="grid"></div>
<!-- 원을 그리기 -->
<div id="red"></div>
<div id="green"></div>
<div id="blue"></div>
</body>
</html>
// 그리드 제목 없애기
$('#red').hide()
반응형