VML polar path tutorial (5) RoundRect circle shape

Source: Internet
Author: User
Navigation of this series of articles

VML polar path tutorial (1) Introduction to VML

VML polar path tutorial (2) getting started with VML

VML polar path tutorial (3) Marking practice and line

VML polar path tutorial (4) Oval circle rect rectangular

VML polar path tutorial (5) roundrect circle shape

VML polar path tutorial (6) image

VML polar path tutorial (7) polyline multi-side

VML polar path tutorial (8) shape multiple sides. shapetype template. Shape and curve

VML polar path tutorial (9) Background of background

VML polar path tutorial (10) group collection container. vmlframe graphic reference

VML polar path tutorial (11) 2-level mark stroke border, shadow

VML polar path tutorial (12) VML programming finale

Roundrect circle shape VML polar path tutorialOriginal: Mu Yuanhua
Chapter 1 Section 8: roundrect circle shape

1: roundrect circle shape-special attributes
Arcsize is used to describe the radian value of the four corners of the circular rectangle. The value ranges from 0 to 0.5. The default value is 0.05.

2: roundrect circle shape-instance description<HTML xmlns: V> <style> V/: * {behavior: URL (# default # VML) ;}</style> <body>
<V: roundrect style = "position: absolute; Z-INDEX: 1; left: 100; width: 100; top: 100; height: 100 "strokecolor =" black "strokeweight =" 1px "/>
<V: roundrect style = "position: absolute; Z-INDEX: 1; left: 220; width: 100; top: 100; height: 100 "strokecolor =" red "strokeweight =" 1px "arcsize =" 0.15 "/>
<V: roundrect style = "position: absolute; Z-INDEX: 1; left: 340; width: 250; top: 120; height: 200 "strokecolor =" green "strokeweight =" 1px "arcsize =" 0.3 "fillcolor =" yellow "/>

It is not hard to see that the roundrect circle is similar to the oval circle and rect rectangle, but it only has an arcsize special attribute. This special attribute controls the radians of the rectangle. The smaller the value, the smaller the radians, and the larger the value, the larger the radians.

3: RoundRect circle shape-Small Test Tool <HTML xmlns: V> <style> V/: * {behavior: URL (# default # VML) ;}</style> <body>
<V: roundrect style = "position: absolute; Z-INDEX: 1; left: 100; width: 70; top: 100; Height: 30; text-align: center; padding-top: 8 "strokecolor =" black "strokeweight =" 1px "arcsize =" 0.2 "href =" http://www.microsoft.com "Title =" click to visit Microsoft Website "target =" window1 ">
Microsoft
</V: roundrect>
<V: roundrect style = "position: absolute; Z-INDEX: 1; left: 170; width: 70; top: 100; Height: 30; text-align: center; padding-top: 8 "strokecolor =" black "strokeweight =" 1px "arcsize =" 0.2 "href =" http://www.google.com "Title =" click to visit Google site "target =" window1 ">
Google
</V: roundrect>
<V: roundrect style = "position: absolute; Z-INDEX: 5; left: 80; width: 400; top: 126; Height: 250; text-align: center; padding-top: 12 "strokecolor =" black "strokeweight =" 1px "arcsize =" 0.06 ">
<IFRAME src = "" name = "window1" width = 95% Height = 95%> </iframe>
</V: roundrect>

This example combines the knowledge of this chapter and the previous sections and provides a small example, this simple example shows how to create a VML 3D Web page and how to use CSS to control the layout of the HTML content (text-align: center; Describe content in the left-right center, padding-top: 8; the description content is 8 pixels above the boundary of the image)

Blog Source: http://www.cnblogs.com/GeneralXU/archive/2007/05/29/763226.html

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.