zoukankan      html  css  js  c++  java
  • html, css

     

    h1 {color:red; font-size:14px;}
    h1,h2,h3,h4,h5,h6 { color: green; }
    li strong { font-style: italic; font-weight: normal; }

    id:
    #red {color:red;}
    #sidebar p { font-style: italic; text-align: right; margin-top: 0.5em; }

    class:
    .center {text-align: center}
    .fancy td {
    color: #f60;
    background: #666;
    }
    td.fancy {
    color: #f60;
    background: #666;
    }

    style属性:
    [title]
    {
    color:red;
    }
    input[type="text"]
    {
    150px;
    display:block;
    margin-bottom:10px;
    background-color:yellow;
    font-family: Verdana, Arial;
    }

    如何引入:
    1) 外部引入
    <head>
    <link rel="stylesheet" type="text/css" href="mystyle.css" />
    </head>

    2) 内部引入
    <head>
    <style type="text/css">
    hr {color: sienna;}
    p {margin-left: 20px;}
    body {background-image: url("images/back40.gif");}
    </style>
    </head>

    3) 内联
    <p style="color: sienna; margin-left: 20px">
    This is a paragraph
    </p>

    <head>
    <link rel="stylesheet" href="../jquery-treeview/jquery.treeview.css" />
    <link rel="stylesheet" href="../jquery-treeview/demo/screen.css" />

    <script src="../jquery-treeview/lib/jquery.js" type="text/javascript"></script>
    <script src="../jquery-treeview/lib/jquery.cookie.js" type="text/javascript"></script>
    <script src="../jquery-treeview/jquery.treeview.js" type="text/javascript"></script>
    <script src="../jquery-treeview/demo/demo.js" type="text/javascript" ></script>
    </head>

  • 相关阅读:
    IntelliJ IDEA 修改内存大小,使得idea运行更流畅。(转发)
    QueryRunner使用总结
    C#中static修饰符的作用
    Design Support库中的控件
    关于tomcat部署项目的问题
    让后台服务一直运行
    活动和服务的通信
    服务的用法
    数组右移问题
    素数对猜想
  • 原文地址:https://www.cnblogs.com/alipayhutu/p/2801791.html
Copyright © 2011-2022 走看看