zoukankan      html  css  js  c++  java
  • web前端中的一些注释表达法

    1、HTML注释

    • <!--注释的内容-->
    • 注释的地方(根据个人习惯可能有所不同):

      结束标签的后面,这一切都是为了程序在嵌套的时候更加方便、明了,如:     

    <div class="main">
    
    </div><!--注释的内容-->

    2、CSS注释

    • /*注释的内容*/
    • 注释的位置:

      某个模块样式开始的地方,说明这段样式是作用于哪段模块,如:

    复制代码
    /*header*/
    header {
          800px;
         background-color: #999;  
    }
    
    /*footer*/
    footer {
          800px;
         background-color: #EEE;  
    }
    复制代码

    3、JavaScript注释

    • 单行注释://注释的内容;

        块级注释:/*注释的内容*/;

    • 注释位置:

       一般将注释添加在某段功能函数的上边,说明函数的功能、作者、作者信息、修改时间。如:

    // 输出标题:
    document.getElementById("myH1").innerHTML="Welcome to my Homepage";  

    4、mysql注释

     ·单行注释:# 注释内容;

     ·多行注释:/* 注释内容 */;

    #插入语句:
    INSERT INTO tableName VALUES('1','tom',...)
    内容仅个人学习使用,不能作为商业用途,一经发现责任自负!
  • 相关阅读:
    JVM StackOverflowError vs. OutOfMemoryError
    db2 command line notes
    my emacs configuration
    repackage android application
    file -i haha.csv
    QualType in clang
    STM in Clojure
    32bit / 64bit co-exist Linux, ld-linux.so, linux-gate.so.1 etc
    hash tree
    K-S Test
  • 原文地址:https://www.cnblogs.com/lcspring/p/10593064.html
Copyright © 2011-2022 走看看