当我在Chrome浏览器上查看我的网站时,我遇到了svg的问题,但是当在其他浏览器上查看它时,如Firefox,safari和IE我的svg是隐形的。请帮助谢谢。 这是我的一个svg的样本。
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 40 40" enable-background="new 0 0 40 40" xml:space="preserve">
<g>
<path d="M33.4,19.6c-0.6,0-1.2,0.5-1.2,1.1v15.5h-8.2v-6.3c0-0.6-0.5-1.1-1.1-1.1h-5.9c-0.7,0-1.2,0.5-1.2,1.1v6.3H7.7
v-15c0-0.6-0.5-1.1-1.2-1.1c-0.6,0-1.1,0.5-1.1,1.1v16.1c0,0.6,0.5,1.1,1.1,1.1h10.5c0.6,0,1.1-0.5,1.1-1.1v-6.3h3.6v6.3
c0,0.6,0.5,1.1,1.2,1.1h10.4c0.6,0,1.1-0.5,1.1-1.1V20.8C34.5,20.1,34,19.6,33.4,19.6z M39.7,20.5l-9.1-9V5.4
c0-0.6-0.5-1.1-1.2-1.1c-0.6,0-1.1,0.5-1.1,1.1v3.9l-7.5-7.4c-0.2-0.2-0.5-0.4-0.8-0.4c-0.3,0-0.6,0.1-0.8,0.4L0.4,20.4
c-0.5,0.4-0.5,1.2,0,1.6c0.4,0.5,1.1,0.4,1.6,0L20,4.2l18,17.9c0.2,0.2,0.5,0.3,0.8,0.3c0.3,0,0.6-0.1,0.8-0.3
C40.1,21.7,40.1,21,39.7,20.5z"/>
</g>
</svg>
答案 0 :(得分:0)
这是帮助我使用Jquery使用firefox.by显示svg的原因
cmbEmployeeNo.DisplayMember = "NAME_INI";
cmbEmployeeNo.ValueMember="EMP_NO";
cmbEmployeeNo.DataSource = objNoPayBLL.getEmployees();
对于Mac上的Safari很好但是在Windows上,dosint识别填充:#...添加颜色:#......使svgs变得可见。感谢大家的评论并试图提供帮助。