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>