반응형 JavaScript44 [javascript] 부트스트랩(bootstrap), 쿼리셀렉터(querySelector) 1. head 태그 안에 복붙 한다. (마지막에 적용할 css의 파일 링크를 아래쪽으로) 2. body 태그 가 끝나기 전에 을 복붙한다 3. UI이 적용할 html Navbar An item A second item A third item A fourth item And a fifth one 4. script or or or 5. 출력화면 2023. 1. 11. [javascript] function의 파라미터, 이벤트리스너 ※ 다른 버튼을 누르면 알림 창의 다른 내용 보이게 하기 ※ 하나의 function으로 다른 역할을 하는 버튼 만들기 ※ 닫기 버튼은 이벤트리스너로 구현 1. html 알림창임 X 버튼1 버튼2 2. main.css .alert-box { background-color: skyblue; padding: 20px; color: white; border-radius: 10px; display: none; float: left; width: 100%; } .alertclose-btn { font-size: 16px; float: right; background-color: skyblue; border: none; color: white; height: 21px; } .alerttext { float: left.. 2023. 1. 7. 이전 1 ··· 5 6 7 8 다음 반응형