显示问题:Windows应用程序中的html编辑器中没有样式 [英] Problem with display:none style in html editor in windows application
问题描述
我已经实现了mshtml来创建简单的HTML编辑器。
在Html文件中,其中一个元素包含样式为display:none。在IE中,它是隐藏的,但在我的编辑器中它是可见的。
无法找出原因。
请建议任何解决方案。
提前致谢
I have implemented mshtml to create simple HTML editor.
In Html file, one of the element contains style as "display:none". In IE, it is hidden but in my editor it is visible.
Not able to figure out why.
Please suggest any solution.
Thanks in advance
推荐答案
参考 - 使用MSHTML编辑器的额外功能 [ ^ ]。
Refer - Using the MSHTML Editor's Extra Features[^].
IDM_RESPECTVISIBILITY_INDESIGN :采取 VT_BOOL 即可。激活此功能后,任何具有可见性属性的元素设置为隐藏或显示属性设置为无,不会显示在设计模式中,就像它一样不会以浏览模式显示。
IDM_RESPECTVISIBILITY_INDESIGN: Takes a VT_BOOL. When this feature is activated, any element that has a visibility property set to "hidden," or a display property set to "none," will not display in design mode, just as it would not display in browse mode.
这篇关于显示问题:Windows应用程序中的html编辑器中没有样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!