验证(CSS 2.0):'mso-number-format'不是已知的CSS属性名称 [英] Validation (CSS 2.0): 'mso-number-format' is not a known CSS property name

查看:3045
本文介绍了验证(CSS 2.0):'mso-number-format'不是已知的CSS属性名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已继承维护ASP .Net应用程序,其中包括将HTML表格导出到Excel。 HTML包含这样的构造:< td style =mso-number-format:\ @;>
当代码正在构建时,我收到错误:验证(CSS 2.0):'mso-number-format'不是一个已知的CSS属性名称。
任何建议?

I have inherited for maintenance an ASP .Net app, which among other things exports HTML table to Excel. The HTML contains constructs like this one: <td style="mso-number-format:\@;"> When code is being built, I get error: "Validation (CSS 2.0): 'mso-number-format' is not a known CSS property name." Any suggestions?

推荐答案

mso-number-format msoffice))Microsoft Office CSS属性。您将需要从导出中删除这些,或者更好地从HTML模板中删除它们。

mso-number-format is a proprietary (read: non-standard (read: garbage-outside-msoffice)) Microsoft Office CSS property. You will need to strip these from the export, or better yet remove them from the HTML template altogether.

我发现了一个很好的资源,似乎直接您的问题: http://agoric.com/sources/software/htmltoExcel 显然他们赞成的属性。

I found a great resource on the subject that seems to pertain directly to your issue: http://agoric.com/sources/software/htmltoExcel Apparently they are in favor of the property.

这篇关于验证(CSS 2.0):'mso-number-format'不是已知的CSS属性名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆