<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<title>스파르타코딩클럽 | 부트스트랩 연습하기</title>
<style>
.head-image
{
width: 560px;
margin:20px auto 20px auto;
}
.sale-type
{
margin:auto;
margin:0 0 0 20px;
}
.block-h
{
width:560px;
height: 35px;
}
.block-hh
{
width:182px;
height: 30px;
}
</style>
<script>
function sale()
{
alert("주문이 완료되었습니다.")
}
</script>
</head>
<body>
<div>
<div class="head-image">
<img src="https://pds.joins.com/news/component/htmlphoto_mmdata/202103/26/ac2997a7-7e90-4a18-9eb0-e373804c15a5.jpg" />
<div style="margin-top: 20px;">
<h2 style="font-weight: bold">비트코인 팝니다 <span style="font-weight: lighter; font-size:18px">가격: 42,000,000원 / 개</span></h2>
<h6>이 비트코인은 채굴에 의해서 만들어진 코인으로 익명성이 보장됩니다. 하나밖에 없는 당신의 비트코인을 저렴한 가격에 소유해보세요.</h6>
</div>
<div>
<div class="block-h">
<label>주문자 성함:</label>
<input style="margin-left:3px;" type="password">
</div>
<div class="block-h">
<label style="margin-right:55px">수량:</label>
<select class="block-hh">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
<div class="block-h">
<label style="margin-right:55px">주소:</label>
<input class="block-hh" type="password">
</div>
<div class="block-h">
<label style="margin-right:23px">전화번호:</label>
<input class="block-hh" type="password">
</div>
<div style="width:182px; margin:20px auto auto auto">
<button onclick="sale()" class="block-hh" style="display:block">주문하기</button>
</div>
</div>
</div>
</div>
</body>
</html>
'html과CSS 초급' 카테고리의 다른 글
2021-06-14 (html의 split과 $('#~~~') 구문 사용하기) (0) | 2021.06.14 |
---|---|
2021-06-11 (J쿼리 $('#~~~') 사용하기) (0) | 2021.06.11 |
2021-06-09 (Bootstrap 사용하기) (0) | 2021.06.09 |
2021-06-08 (html 백그라운드이미지 사용하기) (0) | 2021.06.08 |
2021-06-07 (html 문단 나누는 태그들) (0) | 2021.06.07 |