Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

ระบุสื่อเป้าหมายภายในภาษาเอกสารด้วย CSS


เพื่อระบุสื่อเป้าหมาย ให้ใช้แอตทริบิวต์ media:

ตัวอย่าง

<style>    <!--       <!doctype html public "-//w3c//dtd html 4.0//en">       <html>          <head>             <title>link to a target medium</title>             <link rel="stylesheet" type="text/css" media="print, handheld" href="foo.css">          </head>          <body>             <p>the body...          </body>       </html>    --> </style>