WEB/CSS

[CSS] ch04-21. tb3

밍글링글링 2017. 8. 28.
728x90

21_tb.html

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>요안도라</title>

<style>
    @import "../css/21_tb.css";
</style>
</head>

<body>
<table>
  <caption> 주요 국가 통화율</caption>
    <tr>
        <th>통화명</th>
        <th>매매기준율</th>
        <th>전일대비</th>
        <th>등락률</th>
    </tr>
    <tr>
        <th>미국(USD)</th>
        <td>1,090,80</td>
        <td>1.20</td>
        <td>-0.11%</td>
    </tr>
    <tr>
        <th>일본(JPY 100)</th>
        <td>1,359.59</td>
        <td>5.58</td>
        <td>-0.41%</td>
    </tr>
    <tr>
        <th>중국(CNY)</th>
        <td>174.78</td>
        <td>0.30</td>
        <td>-0.17%</td>
    </tr>    
</table>
</body>
</html>

 

21_tb.css

@CHARSET "UTF-8";
table{
    border-collapse: seperate; /*기본값 //분리됨*/
    border:outset 10px;/*inset:파이게 //outset:튀어나오게 선의 굵기*/
    border-spacing:15px;
}
th,td{
    border: inset 5px;
}
 

728x90

'WEB > CSS' 카테고리의 다른 글

[CSS] ch05-01. translate  (0) 2017.08.28
[CSS] ch04-22. tb4  (0) 2017.08.28
[CSS] ch04-20. tb2  (0) 2017.08.28
[CSS] ch04-19. tb  (0) 2017.08.28
[CSS] ch04-18. column  (0) 2017.08.28

댓글