vml html显示迟缓,VML element not shown in strict standards-compliant - Browsers | Microsoft Docs

VML element isn't displayed in strict standards-compliant mode in Internet Explorer 9

03/26/2020

2 minutes to read

In this article

Important

The Internet Explorer 11 desktop application will be retired and go out of support on June 15, 2022 (for a list of what's in scope, see the FAQ). The same IE11 apps and sites you use today can open in Microsoft Edge with Internet Explorer mode. Learn more here.

A Vector Markup Language (VML) element isn't displayed in strict standards-compliant mode when an HTML page uses the !DOCTYPE element in Internet Explorer 9.

Original product version:   Internet Explorer 9

Original KB number:   932175

Resolution

To solve this problem, set the VML style to display:inline-block by using the following code:

vml\:* {

behavior: url(#default#VML);display:inline-block

}

More Information

The VML element is displayed correctly if you make sure the following things:

Don't use strict standards-compliant mode.

Remove the !DOCTYPE element.

For more information about strict standards-compliant mode, see Doctype.

To reproduce this problem, use the following page:

xmlns="http://www.w3.org/1999/xhtml"

xmlns:vml="urn:schemas-microsoft-com:vml">

VML Oval

vml\:*

{

behavior: url(#default#VML);

}

VML Oval

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值