• css 标签选择器和类选择器


    node2:/var/www/html#cat a18.html 
    <link rel="stylesheet" type="text/css" href="a18.css">
    <div class="one" id="one">
       id为one,class为one的div
       <div class="mini">class为mini</div>
    </div>
    
    <div class="one" id="two" title="test">
    id为two,class为one,title为test的div.
    <div class="mini" title="other">class为mini,title为other</div>
    <div class="mini" title="test">class为mini,title为test</div>
    </div>
    
    <div class="one">
    <div class="mini">class为mini</div>
    <div class="mini">class为mini</div>
    <div class="mini">class为mini</div>
    <div class="mini"></div>
    </div>
    
    <div class="one">
    <div class="mini">class为mini</div>
    <div class="mini">class为mini</div>
    <div class="mini">class为mini</div>
    <div class="mini" titile="tesst">class为mini,title为tesst</div>
    </div>
    
    <div style="display:none;" class="none">style的display为"none"的div</div>
    
     <div class="hide">class为"hide"的div</div>
     <div>
     包含input的type为"hidden"的div<input type="hidden" size="8"/>
     </div>
     <span id="mover">正在执行动画的span元素.</span>
    node2:/var/www/html#
    
    
    node2:/var/www/html#cat a18.css 
    <!--标签选择器-->
    div,span,p {
      140px;
      height:140px;
      margin:5px;
      background:#aaa;
      border:#000 1px solid;
      float:left;
      font-size:17px;
       font-family:Verdanna;
      }
    <!--类选择器-->
      div.mini {
        55px;
    	height:55px;
    	background-color:#aaa;
    	font-size:12px;
    }
      div.hide{
        display:none;
    }
  • 相关阅读:
    人工神经网络(Artificial Neural Networks)
    潜语义分析(Latent Semantic Analysis)
    IOS Dictionary和Model相互转换
    jquery ajax跨域请求webservice
    日期格式转换
    1
    iptables详解
    yum报错-Network is unreachable"Error:
    41个Web开发者JavaScript实用小技巧
    比较常用的几个maven第三方镜像
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348828.html
Copyright © 2020-2023  润新知