Notice
                              
                          
                        
                          
                          
                            Recent Posts
                            
                        
                          
                          
                            Recent Comments
                            
                        
                          
                          
                            Link
                            
                        250x250
    
    
  | 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 
| 9 | 10 | 11 | 12 | 13 | 14 | 15 | 
| 16 | 17 | 18 | 19 | 20 | 21 | 22 | 
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 
| 30 | 
                            Tags
                            
                        
                          
                          - Spring
 - HTML
 - 어플
 - javascript
 - 오라클
 - JQuery
 - mlb stats api
 - 판다스
 - CSS
 - 기록
 - 앱
 - 시간
 - 자바스크립트
 - 자바
 - kotlin
 - Android
 - java
 - 코틀린
 - 배포
 - oracle
 - 스프링
 - gcp
 - pandas
 - Python
 - streamlit
 - 제이쿼리
 - 프로젝트
 - 파이썬
 - MLB
 - 안드로이드
 
                            Archives
                            
                        
                          
                          - Today
 
- Total
 
develope_kkyu
[JAVASCRIPT] 드래그해서 원 옮기기 본문
728x90
    
    
  <!DOCTYPE html>
<html lang="en">
<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>이벤트 드래그</title>
    <script src="./JS/EVENT_06.js"></script>
    <style>
        body{
            /* body는 기본값으로 margin 8px을 지니고 있음. */
            margin : 0px;
        }
        #container {
            width: 800px;
            height: 800px;
            border: 1px solid gray;
        }
        #box{
            width: 100px;
            height: 100px;
            border: 5px solid gold;
            border-radius: 50%;
            background-color: silver;
            position: absolute;
        }
        #box2{
            width: 50px;
            height: 50px;
            border: 20px solid rgb(0, 243, 203);
            border-radius: 50%;
            background-color: rgb(6, 42, 248);
            position: absolute;
        }
    </style>
</head>
<body>
    <section id="section1">
        <div id="container">
            <div id="box">
                <div id="box2"></div>
            </div>
        </div>
    </section>
</body>
</html>
--


728x90
    
    
  'FrontEnd > JAVASCRIPT' 카테고리의 다른 글
| [JAVASCIPT] 이벤트 박스 클릭해서 옮기기 (0) | 2022.12.22 | 
|---|---|
| [JAVASCRIPT] Dom 체크박스 관리 (0) | 2022.12.22 | 
| [JAVASCRIPT] Dom Node 관리 (0) | 2022.12.22 | 
| [JAVASCRIPT] 계산기 만들기 (0) | 2022.12.22 | 
| [JAVASCRIPT] JSON Parse (2) | 2022.12.22 |