问题描述
除非有人能告诉我如何使用它,否则我放弃了VML。
问题
1)我无法解决如何检测它是否存在。
我尝试了一些VB IsObject(CreateObject(...))但是没有用。
2)我似乎无法正确绘制
不能画一个圆圈(椭圆形)划线到两个。
任何帮助欢迎,
Aaron
Unless someone can show me how to use it I am giving up on VML.
Problems
1) I cannot work out how to detect whether it is present.
I tried some VB IsObject( CreateObject( ...)) but that did not work.
2) I cannot seem to get it to draw properly
cannot draw a circle(oval) crossed by a line to two.
Any help welcome,
Aaron
推荐答案
您必须 - 它默认显示。对于IE 4的测试阶段,VML over ActiveX已经上线了,你可以高兴地忘记它。如果它是IE -
那么你有本机VML支持
You dnt have to - it is presented by default. VML over ActiveX was on
the testing stage for IE 4, you can happily forget of it. If it''s IE -
then you have native VML support
< html xmlns:v =" urn:schemas-microsoft-com:vml"
xmlns =" http:/ /www.w3.org/TR/REC-html40">
< head>
< style>
v \: * {behavior:url(#default#VML);}
< / style>
< / head>
< body> ;
< v:oval coordsize =" 21600,21600" style =''width:156pt; height:156pt''>
< / v:oval>
< v:line coordsize =" 21600,21600" ;从= QUOT; 7.5pt,.75pt" to =" 123pt,6pt">
< / v:line>
< / body>
< / html> ;
只需将线放在您想要的任何地方。总的来说,我不知道为什么你拒绝谷歌和阅读VML和SVG
参考?这些东西不一定要在starvations中找到,只需阅读手册。
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<style>
v\:* {behavior:url(#default#VML);}
</style>
</head>
<body>
<v:oval coordsize="21600,21600" style=''width:156pt;height:156pt''>
</v:oval>
<v:line coordsize="21600,21600" from="7.5pt,.75pt" to="123pt,6pt">
</v:line>
</body>
</html>
Just place the line yourself wherever you want. Overall I do not
understand why are you refusing to google for and to read VML and SVG
references? The things do not have to be found in starvations by
yourself, just read the manual.
您必须 - 它默认显示。对于IE 4的测试阶段,VML over ActiveX已经上线了,你可以高兴地忘记它。如果它是IE -
那么你有本机VML支持
You dnt have to - it is presented by default. VML over ActiveX was on
the testing stage for IE 4, you can happily forget of it. If it''s IE -
then you have native VML support
我遇到了一个不支持它的朋友机器。
I have came across a friends machine that does not support it.
< html xmlns:v =" urn:schemas-microsoft-com:vml"
xmlns =" http:/ /www.w3.org/TR/REC-html40">
< head>
< style>
v \: * {behavior:url(#default#VML);}
< / style>
< / head>
< body> ;
< v:oval coordsize =" 21600,21600" style =''width:156pt; height:156pt''>
< / v:oval>
< v:line coordsize =" 21600,21600" ;从= QUOT; 7.5pt,.75pt" to =" 123pt,6pt">
< / v:line>
< / body>
< / html> ;
只需将线放在您想要的任何地方。
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<style>
v\:* {behavior:url(#default#VML);}
</style>
</head>
<body>
<v:oval coordsize="21600,21600" style=''width:156pt;height:156pt''>
</v:oval>
<v:line coordsize="21600,21600" from="7.5pt,.75pt" to="123pt,6pt">
</v:line>
</body>
</html>
Just place the line yourself wherever you want.
现在用JavaScript?
AND now in JavaScript ?
我已经阅读了W3C和MS''文档。
MS似乎没有遵循W3C文档AFAICT。
Aaron
I have read both W3C and MS''es documentation.
MS seems not to follow W3C documentation AFAICT.
Aaron
< html xmlns:v =" urn:schemas-microsoft-com:vml"
xmlns =" http:/ /www.w3.org/TR/REC-html40">
< head>
< style>
v \: * {behavior:url(#default#VML);}
< / style>
< / head>
< body> ;
< v:oval coordsize =" 21600,21600" style =''width:156pt; height:156pt''>
< / v:oval>
< v:line coordsize =" 21600,21600" ;从= QUOT; 7.5pt,.75pt" to =" 123pt,6pt">
< / v:line>
< / body>
< / html> ;
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<style>
v\:* {behavior:url(#default#VML);}
</style>
</head>
<body>
<v:oval coordsize="21600,21600" style=''width:156pt;height:156pt''>
</v:oval>
<v:line coordsize="21600,21600" from="7.5pt,.75pt" to="123pt,6pt">
</v:line>
</body>
</html>
它们显示为单独的元素而不是一个元素。好像他们分别在两个单独的
DIV'。
也为什么风格而不是W3C中的位置属性
文件?
Aaron
They appear as separate elements not as one. As if they were in two separate
DIV''s.
Also why the style rather than the position attribute as in W3C
documentation ?
Aaron
这篇关于放弃VML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!