zoukankan      html  css  js  c++  java
  • 【CSS3】Advanced5:At Rules:@import, @media, and @font-face

    1.@import

    bolt another stylesheet onto your existing one.

    @import url(**.css);

    must be placed at the top of a stylesheet, before any other rules.

    2.@media

    screen, print, projection, handheld, and all, or a comma-separated list of more than one,variables relating to that media

    eg:@media screen,projection

    3.@font-face

    eg1:@font-face{

    font-family:"font of all knowledge";

    src:url(fontofallknowledge.woff");

    }

    create a font named “font of all knowledge” using the font-family descriptor and links the font file “fontofallknowledge.woff” to that name using the src descriptor. “font of all knowledge” can then be used in a standard font rule

    The font will be downloaded (in this case from the same directory as the CSS file) and applied to paragraphs

    eg2:Checking to see if a font is already present on a user’s computer,removing the need to download it,specify which one you’re interested in.

    Could use Google Web Fonts

    
    @font-face {
        font-family: "font of all knowledge";
        src: local("font of all knowledge"), local(fontofallknowledge), url(fontofallknowledge.woff);
        font-weight: 400;
        font-style: normal;
    }





  • 相关阅读:
    django 单表操作
    爬虫学习
    DRF源码分析
    DRF权限和频率限制
    DRF版本和认证源码分析
    request高级部分
    多任务异步爬虫及selenium模块使用
    requests基本使用
    爬虫介绍及环境
    Flask生命周期的源码流程
  • 原文地址:https://www.cnblogs.com/yzhen/p/3667618.html
Copyright © 2011-2022 走看看