@media Rule > html

본문 바로가기
사이트 내 전체검색

html

@media Rule

페이지 정보

작성자 서방님 댓글 0건 조회 120회 작성일 06-09-14 10:59

본문

<style type="text/css">
@media screen
{
   // For computer screens, the font size is 15pt. the font color is green.
   td {font-size:15pt; color:green;}
}
@media print
{
   // When printed, the font size is 8pt. the font color is blue.
   td {font-size:8pt; color:blue;}
}
</style>

[문법]

@media sMediaType sRules }

sMediaType 

   * screen : Output is intended for computer screens.

   * print : Output is intended for printed material

          and for documents viewed in Print Preview mode.

   * all : Output is intended for all devices.

--------------------------------------------------------------------------------------------------

You can use css/dynamic html for this.

Example:
<html>
<head>
<style type="text/css">
@media print {
     div.noprint {display: none;}
}
</style>
</head>
<body>
this is printed<br>
<div class="noprint">This is NOT printed</div>
</body>
</html>

I don't know about the support for this in all browsers, but it works well for ie.

댓글목록

등록된 댓글이 없습니다.

Total 323건 20 페이지
게시물 검색

회원로그인

접속자집계

오늘
121
어제
225
최대
1,347
전체
154,880
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.