테이블 수평 분배기

테이블 수평 분배기

이름 저금

베드로 그리핀 $ 100

로이스 그리핀 $ 150

스완 손 300 달러

border-bottom수평 분할 자의 경우 <th> 및 <td>에 속성을 추가하십시오 .

 

th, td {

    border-bottom: 1px solid #ddd;

}

 

 

<!DOCTYPE html>

<html>

<head>

<style>

table {

    border-collapse: collapse;

    width: 100%;

}

 

th, td {

    padding: 8px;

    text-align: left;

    border-bottom: 1px solid #ddd;

}

</style>

</head>

<body>

 

<h2>Bordered Table Dividers</h2>

<p>Add the border-bottom property to th and td for horizontal dividers:</p>

 

<table>

  <tr>

    <th>Firstname</th>

    <th>Lastname</th>

    <th>Savings</th>

  </tr>

  <tr>

    <td>Peter</td>

    <td>Griffin</td>

    <td>$100</td>

  </tr>

  <tr>

    <td>Lois</td>

    <td>Griffin</td>

    <td>$150</td>

  </tr>

  <tr>

    <td>Joe</td>

    <td>Swanson</td>

    <td>$300</td>

  </tr>

  <tr>

    <td>Cleveland</td>

    <td>Brown</td>

    <td>$250</td>

  </tr>

</table>

 

</body>

</html>

789de082eda191a16b29225dae1ca3ac_1489070059_0316.png

|
댓글을 작성하시려면 로그인이 필요합니다.

퍼블리셔팁

퍼블리싱과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
CSS 8년 전 조회 2,068
CSS 8년 전 조회 2,331
CSS 8년 전 조회 2,337
CSS 8년 전 조회 2,195
CSS 8년 전 조회 2,376
CSS 8년 전 조회 2,462
CSS 8년 전 조회 3,025
CSS 8년 전 조회 2,677
CSS 8년 전 조회 2,542
CSS 8년 전 조회 1,988
CSS 8년 전 조회 2,029
CSS 8년 전 조회 2,272
CSS 8년 전 조회 1,692
CSS 8년 전 조회 2,354
CSS 8년 전 조회 1,899
CSS 8년 전 조회 2,336
CSS 8년 전 조회 2,360
CSS 8년 전 조회 2,378
CSS 8년 전 조회 2,184
CSS 8년 전 조회 1,925
CSS 8년 전 조회 2,388
CSS 8년 전 조회 1,741
CSS 8년 전 조회 1,824
CSS 8년 전 조회 1,916
CSS 8년 전 조회 2,551
CSS 8년 전 조회 2,617
CSS 8년 전 조회 1,986
CSS 8년 전 조회 2,470
CSS 8년 전 조회 1,990
CSS 8년 전 조회 2,054