如何在 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>

更新時間: 16-Mar-2020

54 次瀏覽

開啟您 職業生涯

完成課程獲得證書

開始學習
廣告
© . All rights reserved.