본문 바로가기

Python_WEB/HTML

[Ch7]HTML과 CSS로 웹 사이트 만들기 연습문제 4

반응형

Q>

본문에서 구현된 작은 웹 사이트에서는 아직 완성하지 못한 페이지가 많다.

페이지를 작성하여 전체 사이트를 완성하여 보자.

 

A>

MY ACCOUNT - 배송조회, 나의 정보를 조회하는 페이지

 

<!DOCTYPE html>
<html lang="ko">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>배송조회</title>
    <link rel="stylesheet" href="css/mystyle.css">
</head>

<body>
    <h4 class="center-t">2020.12.18 주문 목록</h4>
    <table class="order">
        <tr>
            <th colspan="2" class="left-t">결제 정보</th>
        </tr>

        <tr>
            <td>상품가격</td>
            <td class="right-t">8,000원</td>
        </tr>

        <tr>
            <td>배송비</td>
            <td class="right-t">2,500원</td>
        </tr>

        <tr>
            <td colspan="2" class="top-t"></td>
        </tr>

        <tr>
            <td>비씨카드</td>
            <td class="right-t">10,500원</td>
        </tr>

        <tr>
            <th class="left-t">총 결제금액</th>
            <td class="right-t">10,500원</td>
        </tr>
    </table>

    <h4 class="center-t">결재영수증 정보는 문자로 발송해드리고 있습니다.</h4>


    <table class="order">
        <tr>
            <th class="left-t">AnKiwoong</th>
            <td class="right-t">010-123-1234</td>
        </tr>

        <tr>
            <td colspan="2" class="left-t">경기도 화성시 동탄면 오산리 962-84 201호</td>
        </tr>

        <tr>
            <td colspan="2" class="top-t"></td>
        </tr>

        <tr>
            <td class="left-t">배송요청사항</td>
            <td class="right-t">문 앞에 놔주세요</td>
        </tr>
    </table>

    <table class="order">
        <tr>
            <th class="left-t">배송 진행 중</th>
            <td class="font-g">12/25(목) 도착예정</td>
        </tr>

        <tr>
            <td><img src="images/notebook.png" class="img-s"></td>
            <td class="right-t"><strong class="font-b">빠른배송</strong> 노트북 20" 보안 필름</td>
        </tr>
    </table>

    <div id="center">
        <input type="button" value="교환신청" />
        <input type="submit" value="반품신청" />
    </div>

    <div id="back">
        <a href="index.html">Back to Home</a>
    </div>
</body>

</html>

 

* {
  /*border: 1px solid red;*/
  padding: 0px;
  margin: 0px;
}

body {
  background-color: #f3f1e9;
  height: 100%;
}

a,
#back {
  text-decoration: none;
  color: #3f3f3f;
}

a:hover {
  color: #ff088f;
  text-shadow: 4px 2px 2px gray;
}

.order {
  border-collapse: separate;
  border-spacing: 3px;
  width: 100%;
  font-size: 15px;
  padding-top: 20px;
}

.order > caption {
  text-align: left;
  font-size: 20px;
}

.right-t {
  text-align: right;
}

.left-t {
  text-align: left;
}

.top-t {
  border-top: 1px solid gray;
}

.center-t {
  text-align: center;
  margin: 20px;
}

.font-g {
  color: green;
  font-weight: bold;
  text-align: right;
}

.font-b{
  color: blue;
  font-weight: bold;
}

.img-s {
  width: 50px;
  height: 50px;
}
  
 #back {
  text-align: center;
}

 

R>

 

HTML5 + CSS3 + JavaScript로 배우는 웹프로그래밍 기초
국내도서
저자 : 천인국
출판 : 인피니티북스 2013.12.19
상세보기
반응형