테스트 사이트 - 개발 중인 베타 버전입니다

1px 라인 css와 2개이상 class 적용.

· 18년 전 · 4026
//기존
<table width="500" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>내용</td>
  </tr>
  <tr>
    <td height="1" bgcolor="#CCCCCC"></td>
  </tr>
</table>


//css
<style type="text/css">
.line_bottom {border-bottom:1px solid #ccc; }
.line_top {border-top:1px solid #ccc; padding:4px 0 4px 0;}
.div_width {width:500px;}
</style>

-div 바텀 라인
<div class="line_bottom div_width">내용</div>

-div 탑 라인
<div class="line_top div_width">내용</div>

-table "내용" 아래 위로 한줄씩
<table width="500" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="line_bottom line_top">내용</td>
  </tr>
</table>

예제처럼 두가지 이상 클래스 적용시
class="class_01 class_02" 식으로 한다.

[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]

댓글 작성

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

로그인하기

게시글 목록

번호 제목
10853
10852
10850
28848
10849
28847
10846
28846
10845
28845
10844
28844
28843
10843
28842
10842
28841
10841
28840
28839
10840
10839
24791
24789
10836
28838
24788
24787
24786
28837
28834
10835
10834
정규표현식 수수료계산
28833
28829
10833
10831
10830
10829
28828
10828
10827
10823
10822
10821
10820
28822
10814
10812
10811
10810
10808
10804
10797
28821
10796
10795
10794
10792
10789
10785
10781
10780
28820
10776
10769
10766
10765
10758
28818
10754
10753
10750
28817
10749
10748
10747
10746
10740
10738
10735
10734
28812
10730
10726
10725
28811
10724
10723
10722
10721
10717
10716
10715
10713
10712
10711
10710
10709
10708