Vml:Textpath元素,如何设置string 的对齐方式?

ywqzxj 2003-08-26 01:16:20
<HTML xmlns:v>
<STYLE>
v\:*{behavior:url(#default#VML);} //声明变量v为VML对象
</STYLE>
<BODY>
<v:Roundrect filled='f' style='POSITION:absolute;left:20;top:20;width:200;height:400;'>
<v:Fill on='true' color='red'/>
<v:Path textpathok='True'/>
<v:Textpath on='True' style='font-size:25' string='怎么相对path左边对齐、下边对齐呢?请楼上老兄高抬贵手1234567890'/>
</v:Roundrect>
<v:Roundrect filled='f' style='POSITION:absolute;left:20;top:20;width:200;height:400;'>
</v:Roundrect>
<v:polyline style='POSITION:absolute;' points='250,10 500,200'>
<v:Path textpathok='True'/>
<v:Textpath on='True' style='font-size:20;' string='默认的方式是居中的!'/>
</v:polyline >
<v:polyline strokecolor="#ff00ff" style='POSITION:absolute;' points='250,10 500,200'>
</v:polyline >
<v:polyline style='POSITION:absolute;' points='300,100 500,350'>
<v:Path textpathok='True'/>
<v:Textpath on='True' fitpath='true' style='font-size:6pt;' string='当然可以填满,但是字体大小(6pt)变了!'/>
</v:polyline >
<v:polyline strokecolor="#ff00ff" style='POSITION:absolute;' points='300,100 500,350'>
</v:polyline >
</body>
</html>
...全文
142 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
treeClimber 2003-10-28
  • 打赏
  • 举报
回复
顶一下,还想问一个,怎样使文字竖排?
用textPath如果轨迹是竖线,文字为朝左的。
qwert11 2003-09-19
  • 打赏
  • 举报
回复
up,学习

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧