How to specify the target media type for a set of CSS rules

王林
Release: 2023-08-31 15:01:02
forward
1150 people have browsed it

如何指定一组 CSS 规则的目标媒体类型

The media attribute on the Link element specifies the target media for the external style sheet -

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>
Copy after login

The above is the detailed content of How to specify the target media type for a set of CSS rules. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!