?? step5.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<title>Thinking in VML</title>
</head>
<STYLE>
v\:* { BEHAVIOR: url(#default#VML) }
</STYLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="style.css" />
<body>
<table align="center">
<tr>
<td align="center" class="title"><strong>Oval(圓)對象</strong></td>
</tr>
<tr>
<td >
<div class="memo" style="width:700;line-height:23px">
用VML畫圓(Oval)是非常簡單的,只要設置圓的高和寬就可以了。當然定位也是常用的:<br><br>
<v:oval style="position:relative;left:5;top:5;<font color=red>width:100;height:80</font>"/><br>
<center><v:oval style="position:relative;left:5;top:5;width:100;height:80"/></center>
還要注意的是,top和left是圓的左上角坐標,width 和 height 是圓的寬和高,不是圓的半徑。其圓心坐標是(left-width/2,top-height/2)。<br>
說到圓,不得不想到弧(arc) VML已經定義了弧對象,它有除了圓的基本性質外,兩個特殊的屬性startangle 和 endangle ,就是起始角度和結束角度,單位是度,而不是弧度:<br><br>
<v:arc filled=false style="position:relative;width:100;height:100" <font color=red>StartAngle="0" EndAngle="270"</font> />
<center><v:arc filled=false style="position:relative;width:100;height:100" StartAngle="0" EndAngle="270" /></center>
注意到沒有,0角度是從平常的90度開始的。
</div>
</td>
</tr>
<tr>
<td class="title">
<p align="right"><a href="javascript:self.scrollTo(0,0)">Top</a></p>
<a href="index.html">返回目錄</a><br>
上一節:<a href="step4.html">Rect,RoundRect(矩形)對象</a><br>
下一節:<a href="step6.html">Image(圖像)對象</a>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -