Basic concepts of VML _VML related

Source: Internet
Author: User
Tags polyline
VML is equivalent to the brush inside IE, can achieve the graphics you want, and combined with the script, you can make the graphic dynamic effect. VML was released by Microsoft September 1999 with IE5.0, and in my opinion, VML is actually a product of word and HTML. Word documents can be saved as HTML, where the text and pictures can be easily converted, but if the hand-drawn graphics in the past IE can not be explained, if all converted to graphics files is not very realistic. So Microsoft put the graphics control in Word into IE, so that IE also has a drawing function.
The full name of VML is the vector Markup Language (vector-tagged language), which means that the graphics can be zoomed in and out without losing the quality of the graphics, which is useful for making maps. To show it's strong, and increase your confidence in learning VML, let's look at a VML example first:

Hello world!
Hello vml!

In VML, the tag uses XML expansion, requires a namespace (namespace), you can use the customary "V" as the namespace, and the definition of IE5.0 to IE6.0 is as follows:




The xmlns full name is the XML NameSpace that is the namespace. Behavior (behavior) is also IE5.0 new, it is very powerful, combined with style sheets, can give any HTML object to add behavior (new properties, methods, events), and here, it is the use of the namespace "V" and the system pre-defined behavior of VML connection. Once this is defined, you can use the following markup, which differs from normal HTML markup by adding a namespace to each tag:



As with other HTML elements, the VML markup can define most of the DHTML properties and events, such as Id,name,title,onmouseover and so on. VML is more flexible in its writing, and many properties can be written in the markup, and can be represented by a new tag independently:


Equivalent to the following wording:





Of course not all of the properties can be written as separate tags, commonly used such as the above Stroke (as I understand can be translated into linear), Path,shadow,fill (fill), such as VML, such a way can be understood as the shape of the attribute classification, make the property more intuitive.
Some objects derived from the Shape object, more direct images, such as Rect (rectangle), RoundRect (round edge rectangle), Oval (circle), line (lines), PolyLine (irregular polyline), image (graphic file), etc. These objects will be described in detail later.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.