zoukankan      html  css  js  c++  java
  • [ jquery 选择器 :header ] 此方法选取匹配如 h1, h2, h3之类的标题元素

    此方法选取匹配如 h1, h2, h3之类的标题元素

    实例:

    <!DOCTYPE html>
    <html lang='zh-cn'>
    <head>
    <title>Insert you title</title>
    <meta http-equiv='description' content='this is my page'>
    <meta http-equiv='keywords' content='keyword1,keyword2,keyword3'>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type='text/javascript' src='./js/jquery-1.12.1.min.js'></script>
    <script type='text/javascript'>
        $(function(){
          $('#content :header').css({'font':"600 20px/1.2em 'Courier New'",'color':'#F30','margin':'0','padding':'0',});
          $('#content :not(":header")').css({'font':"400 15px/1.2em 'Courier New'",'color':'#999','margin':'0','padding':'0',});
        });    
    </script>
    </head>
    <body>
        <div id='content'>
            <h4>this is a test demo</h4>
            <p>EmEditor Professional以运行轻巧、敏捷而又功能强大、丰富著称,作为简单好用的文本编辑器,EmEditor支持多种配置,可自定义颜色、字体、工具栏、快捷键、行距等,支持文本列块选择、无限撤消/重做等,是替代记事本的最佳编辑器</p>
        </div>
    </body>
    </html>
  • 相关阅读:
    代码编译时JDK版本和运行时JDK版本不一致启动项目报错
    Apache 环境变量配置
    Android NDK 环境变量配置
    Android SDK 环境变量配置
    JAVA 环境变量配置
    FFmpeg Download
    JAVA SE Download
    VS 2015 Download
    BASS HOME
    C++11的闭包(lambda、function、bind)
  • 原文地址:https://www.cnblogs.com/mysearchblog/p/5605720.html
Copyright © 2011-2022 走看看