Home  >  Article  >  Web Front-end  >  How to use CSS to specify target media within a document's language

How to use CSS to specify target media within a document's language

王林
王林forward
2023-08-28 15:53:06847browse

如何使用 CSS 指定文档语言内的目标媒体

To specify the target media, use the media attribute -

Example

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

The above is the detailed content of How to use CSS to specify target media within a document's language. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete