在asp.net中应用VML需注意
1。去掉xhtml的文档类型定义
2。添加vml的namespace和style
如下所示即可:
2。添加vml的namespace和style
如下所示即可:
<%@ Page language="c#" Inherits="ReportControl.Demo.Web.ReportDemo" CodeFile="ReportDemo.aspx.cs" %>
<HTML xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<HEAD>
<STYLE>
v\:* { BEHAVIOR: url(#default#VML) }
o\:* { BEHAVIOR: url(#default#VML) }
</STYLE>
</HEAD>
</HTML>
<HTML xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<HEAD>
<STYLE>
v\:* { BEHAVIOR: url(#default#VML) }
o\:* { BEHAVIOR: url(#default#VML) }
</STYLE>
</HEAD>
</HTML>