CSS style class not combining in Excel

匿名 (未验证) 提交于 2019-12-03 02:33:02

问题:

Why isn't Excel combining these styles?

Excel:

IE:

Example jsFiddle: http://jsfiddle.net/3RtJj/

HTML source:

<html> <style type="text/css"> .greenBack{background-color:#d7e4bc} .redFont{color:red} </style> <table>     <tr>         <td>no style</td><td class="redFont">red font only</td>     </tr>     <tr>         <td class="greenBack">green back only</td><td class="redFont greenBack">green back and red font</td>     </tr> </table> </html> 

回答1:

Someone had a similar problem Here. It seems as if excel only supports having one class, and if there is more it just ignores them all together. I would recommend having a greenBackRedFont class that sets both properties.



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!