To draw a rectangle with VML, you must set style="width:50;height:50" and nothing else is special. In this section, by the way, the shadow object and the TextBox object:
<v:Rect style="position:relative;width:100;height:50px"/>
As the name suggests, RoundRect is a rounded rectangle. This shape is very commonly used when drawing flow charts. If shadows are added, it will look even better:
<v:RoundRect style="position:relative;width:100;height:50px">
<v:shadow on="T" type="single" color="#b3b3b3" offset="5px,5px"/>
</v:RoundRect>
In VML, True and False can be abbreviated as T and F. The offset property in Shadow is used to set the x and y values of the original image to offset. The on property is used to determine whether to display shadows. When writing in a rectangle, use the TextBox object. The more critical attribute of TextBox is inset(left,top,right,bottom), which means positioning text within a range of up, down, left and right of the edge of the figure:
<v:RoundRect style="position:relative;width:120;height:50px">
<v:shadow on="T" type="single" color="#b3b3b3" offset="5px,5px"/>
<v:TextBox inset="5pt,5pt,5pt,5pt" style="font-size:10.2pt;">Hello world!</v:TextBox>
</v:RoundRect>Hello world!
Of course you can also insert HTML code directly, for example, insert one
<Div style="padding-top:5px;padding-left:5px;padding-right:5px;padding-bottom:5px">Hello World!</Div>
The effect is the same.
<v:Rect style="position:relative;width:100;height:50px"/>
<v:RoundRect style="position:relative;width:100;height:50px">
<v:shadow on="T" type="single" color="#b3b3b3" offset="5px,5px"/>
</v:RoundRect>
In VML, True and False can be abbreviated as T and F. The offset property in Shadow is used to set the x and y values of the original image to offset. The on property is used to determine whether to display shadows. When writing in a rectangle, use the TextBox object. The more critical attribute of TextBox is inset(left,top,right,bottom), which means positioning text within a range of up, down, left and right of the edge of the figure:
<v:RoundRect style="position:relative;width:120;height:50px">
<v:shadow on="T" type="single" color="#b3b3b3" offset="5px,5px"/>
<v:TextBox inset="5pt,5pt,5pt,5pt" style="font-size:10.2pt;">Hello world!</v:TextBox>
</v:RoundRect>
Of course you can also insert HTML code directly, for example, insert one
<Div style="padding-top:5px;padding-left:5px;padding-right:5px;padding-bottom:5px">Hello World!</Div>
The effect is the same.