"HTML in the draggable"

HTML in the draggable

I. Preamble

  HTML is our most commonly used to write pages, it contains a lot of new properties, today to find out draggable!

二,draggable

  1.draggable is doing? It is used to specify whether elements can drag !

  2.draggable There are three values: true, false, auto

    true: you can drag elements specified

    false: not specified element is dragged

    auto: the browser's default properties

  

  eg:

    <Img src = "1.jpg" draggable = "false" /> // img pictures can not be dragged it!

    Directly after the label name to add draggable we need to give equal value to!

 

Third, the special episode: About img

    Common attributes:

      src           // image path

      width       // Image Width

      height    // Image Height

      alt           occur when // Pictures failure or load up a text prompt

      title       picture when prompted on the // mouse over the image

 

    Long-winded about: Image img try to write pictures in the tag <img /> in width and height, also recommended remember to write alt = "xxx",

  Alt content of your site is in the picture fails to load or does not come out when you can display text!

  If you add the title attribute, then that is when your mouse over the image, the mouse arrow will appear above the title what you have written!

 

Conclusion: What is wrong also please pass chiefs point out Oh ~

    This article is original, reproduced please declare!

Guess you like

Origin www.cnblogs.com/kitty-chan/p/12172954.html