zoukankan      html  css  js  c++  java
  • Html5

    html5 基本元素

    新特性(当然,这需要浏览器的支持...):
    用于绘画的 canvas 元素
    用于媒介回放的 video 和 audio 元素
    对本地离线存储的更好的支持
    新的特殊内容元素,比如 article、footer、header、nav、section
    新的表单控件,比如 calendar、date、time、email、url、search
    

    Canvas 画布

    <canvas id="myCanvas" width="200" height="100"></canvas>
    
    js:
    <script type="text/javascript">
    var c=document.getElementById("myCanvas");
    var cxt=c.getContext("2d");
    cxt.fillStyle="#FF0000";
    cxt.fillRect(0,0,150,75);
    </script>
    

    SVG 指可伸缩矢量图形 (Scalable Vector Graphics)

    <!DOCTYPE html>
    <html>
    <body>
    <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190">
      <polygon points="100,10 40,180 190,60 10,60 160,180"
      style="fill:lime;stroke:purple;stroke-5;fill-rule:evenodd;" />
    </svg>
    
    </body>
    </html>
    


    I am a slow walker, but I never walk backwards.



  • 相关阅读:
    Ajax请求参数解释
    下拉菜单:‘点击外面关闭’的解决方案
    nc
    telnet
    arping
    traceroute
    ping
    ss
    netstat
    ip
  • 原文地址:https://www.cnblogs.com/lknny/p/5553327.html
Copyright © 2011-2022 走看看