<style type="text/css">
#head {}
#head .basic_font{font-family:궁서; font-size:20px; color:red;}
#middle {}
#middle .basic_font{font-family:돋움; font-size:12px; color:green;}
#tail {}
#tail .basic_font{font-family:굴림; font-size:30px; color:orange;}
</style>
<div id="head">
<span class="basic_font">여기는 id:head class:basic_font</span>
</div>
<div id="middle">
<span class="basic_font">여기는 id:middle class:basic_font</span>
</div>
<div id="tail">
<span class="basic_font">여기는 id:tail class:basic_font</span>
</div>
부id가 상위 태그에 정의 되어 있을때, 중복 클래스네임도 다른 역할을 하게 할수있다.
페이지의 구조를 분석하여 부모 id를 잘정리를 하면 중복 class의 부담을 피해갈수있다.
즐거운 css
#head {}
#head .basic_font{font-family:궁서; font-size:20px; color:red;}
#middle {}
#middle .basic_font{font-family:돋움; font-size:12px; color:green;}
#tail {}
#tail .basic_font{font-family:굴림; font-size:30px; color:orange;}
</style>
<div id="head">
<span class="basic_font">여기는 id:head class:basic_font</span>
</div>
<div id="middle">
<span class="basic_font">여기는 id:middle class:basic_font</span>
</div>
<div id="tail">
<span class="basic_font">여기는 id:tail class:basic_font</span>
</div>
부id가 상위 태그에 정의 되어 있을때, 중복 클래스네임도 다른 역할을 하게 할수있다.
페이지의 구조를 분석하여 부모 id를 잘정리를 하면 중복 class의 부담을 피해갈수있다.
즐거운 css
[이 게시물은 관리자님에 의해 2011-10-31 16:54:41 CSS에서 이동 됨]
첨부파일
게시글 목록
| 번호 | 제목 |
|---|---|
| 12245 |
PHP
php 함수검색기 입니다.
|
| 12244 | |
| 12243 | |
| 12241 | |
| 12239 | |
| 12238 | |
| 12237 |
Mobile
모바일웹에서 현재위치의 좌표 가져오기
|
| 12233 |
JavaScript
alert 창 디자인하기
3
|
| 12232 |
JavaScript
자동완성 자바스크립트
|
| 12230 |
PHP
주소로 구글 좌표 구하기
1
|
| 355 | |
| 12227 | |
| 12226 | |
| 12225 | |
| 353 | |
| 12221 |
PHP
vi 정리 입니다.
3
|
| 12220 | |
| 12219 | |
| 12218 |
PHP
검색사이트 긁어오기 입니다.
|
| 12217 | |
| 12216 | |
| 12215 | |
| 12214 | |
| 12213 | |
| 12212 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기