240104 웹 만들기 ; write.html

2024. 1. 4. 20:012023.11.21-2024.05.31

웹 만들기 ;

(자바스크립트+CSS+HTML)

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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>서머노트연동하기</title>
    <!-- include libraries(jQuery, bootstrap) -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
 
<!-- include summernote css/js -->
<link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"></script>
    <style>
        form{
            width:900px;
            height: auto;
            margin: 5px;
            padding: 10px;
            /* background-color: rgb(105, 58, 3); */
            /* text-align: center; */
            background-image: url(./img/집에어쩌구.jpg);
            background-repeat: no-repeat;
            /* repeat: 반복(x,y로 지정 가능)/ none: 반복 하지마 */
            background-size: cover;
        }
        form input{
            width: 880px;
            height: 50px;
            font-size: 20pt;
            color:green;
            text-align: center;
            margin-bottom: 10px;
        }
        form textarea{
            width: 890px;
            height: 500px;
            /* margin: 10px 0px; */
            padding: 20px;
            box-sizing: border-box;
            font-size: 20pt;
        }
        .btn1{
            width: 100px;
            height: 50px;
 
 
        }
    </style>
</head>
<body>
    <form>
        <input>
        <textarea id="summernote"></textarea>
        <button class="btn1">글쓰기</button>
    </form>
    <script>
        //JQuery: $ 표시로 나타남, 라이브러리
        $(document).ready(
            function() {
            $('#summernote').summernote({
                height:500
        });
        });
    </script>
    
</body>
</html>
cs