VML極道教程(五) RoundRect圓矩型

來源:互聯網
上載者:User
本系列文章導航

VML極道教程(一) VML介紹

VML極道教程(二) VML入門

VML極道教程(三) 標記實戰與line線

VML極道教程(四) oval圓rect矩型

VML極道教程(五) RoundRect圓矩型

VML極道教程(六) image圖片

VML極道教程(七) polyline多邊型

VML極道教程(八) shape多邊型.shapetype模版.shape與curve曲線

VML極道教程(九) background背景

VML極道教程(十) group集合容器.vmlframe圖形引用

VML極道教程(十一) 2級標記stroke邊框,shadow陰影

VML極道教程(十二) VML編程大結局

RoundRect圓矩型 《VML極道教程》原著:沐緣華
1章8節:RoundRect圓矩型

1:RoundRect圓矩型 - 專用屬性
arcsize 用於描述圓矩形四角的弧度值,0-0.5,預設值0.05

2:RoundRect圓矩型 - 執行個體講解 <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"/>

        不難看出,roundrect圓矩形與oval圓、rect矩形的標記很類似,只是多了一個arcsize專用屬性。該專用屬性就是控制圓矩形四角弧度的,值越小弧度越小、值越大弧度越大

3:RoundRect圓矩型 - 小試牛刀 <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="單擊訪問微軟網站" target="window1">
微軟
</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="單擊訪問google網站" 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>

        本例綜合本章節及本章節以前的知識,做了一個小範例,該簡單的範例主要示範VML 3D WEB頁面的製作、以及如何用CSS控製圖形HTML內容的排版(text-align:center;描述內容左右置中、padding-top:8;描述內容距離圖形上方內邊界8個像素)

博文來源:http://www.cnblogs.com/GeneralXU/archive/2007/05/29/763226.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.