Home Web Front-end CSS Tutorial Basic concepts of VML_VML related

Basic concepts of VML_VML related

May 16, 2016 pm 12:09 PM

VML is equivalent to the brush in IE, which can realize the graphics you want, and combined with scripts, it can produce dynamic effects on graphics. VML was released by Microsoft in September 1999 with IE5.0. In my opinion, VML is actually the product of the combination of Word and HTML. You can save Word documents as HTML, and the text and pictures in it can be easily converted. However, hand-drawn graphics cannot be interpreted in IE in the past, and it is not practical to convert them into graphics files. So Microsoft integrated the graphics controls in Word into IE, so that IE also has drawing functions.
The full name of VML is Vector Markup Language (Vector Markup Language). Vector graphics mean that graphics can be enlarged or reduced without losing the quality of the graphics. This is of great use in making maps. In order to show its power and increase your confidence in learning VML, let me first show you a VML example:

Hello world!
Hello VML!


In VML, tags use XML expansion and require a namespace. You can use the customary "v" as the namespace. The common definitions used from IE5.0 to IE6.0 are as follows:

xmlns:v="urn:schemas-microsoft-com:vml">

v:* { Behavior: url(#default#VML) }


The full name of xmlns is XML NameSpace, which is the namespace. Behavior is also a new thing introduced in IE5.0. Its function is very powerful. Combined with style sheets, it can add behaviors (new attributes, methods, events) to any HTML object. Here, its use is to name The space "v" is connected to the system's predefined behavioral VML. After this definition, you can use the following tags, which are different from ordinary HTML tags. Each tag adds a namespace:



Like other HTML elements, most of the DHTML attributes and events can be defined in VML tags, such as id, name, title, onmouseover, etc. VML is more flexible in terms of writing. Many attributes can be written in tags or represented by a new tag independently:
StrokeColor=red Path="m 0,0 l 10,10 x e"
>
is equivalent to the following writing:




Of course not all attributes can be written as independent tags. Commonly used ones include the above Stroke (can be translated into linear according to my understanding), Path, Shadow, Fill (fill), etc. VML can be understood in this way. Classify the attributes of the shape to make the attributes more intuitive. Some objects derived from the Shape object, more direct images, such as Rect (rectangle), RoundRect (rectangle with rounded edges), Oval (circle), Line (line), PolyLine (irregular polyline), Image (Graphic files) and so on, these objects will be described in detail later.
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Demystifying Screen Readers: Accessible Forms & Best Practices Demystifying Screen Readers: Accessible Forms & Best Practices Mar 08, 2025 am 09:45 AM

This is the 3rd post in a small series we did on form accessibility. If you missed the second post, check out "Managing User Focus with :focus-visible". In

Create a JavaScript Contact Form With the Smart Forms Framework Create a JavaScript Contact Form With the Smart Forms Framework Mar 07, 2025 am 11:33 AM

This tutorial demonstrates creating professional-looking JavaScript forms using the Smart Forms framework (note: no longer available). While the framework itself is unavailable, the principles and techniques remain relevant for other form builders.

Adding Box Shadows to WordPress Blocks and Elements Adding Box Shadows to WordPress Blocks and Elements Mar 09, 2025 pm 12:53 PM

The CSS box-shadow and outline properties gained theme.json support in WordPress 6.1. Let's look at a few examples of how it works in real themes, and what options we have to apply these styles to WordPress blocks and elements.

Working With GraphQL Caching Working With GraphQL Caching Mar 19, 2025 am 09:36 AM

If you’ve recently started working with GraphQL, or reviewed its pros and cons, you’ve no doubt heard things like “GraphQL doesn’t support caching” or

Making Your First Custom Svelte Transition Making Your First Custom Svelte Transition Mar 15, 2025 am 11:08 AM

The Svelte transition API provides a way to animate components when they enter or leave the document, including custom Svelte transitions.

Classy and Cool Custom CSS Scrollbars: A Showcase Classy and Cool Custom CSS Scrollbars: A Showcase Mar 10, 2025 am 11:37 AM

In this article we will be diving into the world of scrollbars. I know, it doesn’t sound too glamorous, but trust me, a well-designed page goes hand-in-hand

Show, Don't Tell Show, Don't Tell Mar 16, 2025 am 11:49 AM

How much time do you spend designing the content presentation for your websites? When you write a new blog post or create a new page, are you thinking about

What the Heck Are npm Commands? What the Heck Are npm Commands? Mar 15, 2025 am 11:36 AM

npm commands run various tasks for you, either as a one-off or a continuously running process for things like starting a server or compiling code.

See all articles