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

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


หากต้องการระบุสื่อเป้าหมาย ให้ใช้แอตทริบิวต์สื่อ −

ตัวอย่าง

<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>