我的svg与png相同,图像未显示在最新版本的Mozilla Firefox中。SVG/PNG未显示在Firefox中
我想以更小的div显示它(页面顶部的#navigationbar
)。
虽然,唯一显示的是替代文字。 权限是正确的,并且apache-user可以读取图片,在HTML中svg/png的路径也是正确的。
HTML:
<div id="navigationBar">
<img src="pictures/logo.svg" alt="mm World" />
<a href="mmHome.html" class="navigationButtonSelected">Home</a><a href="ubuntuOverview.html" class="navigationButton">Ubuntu</a>
</div>
<div id="content">
<h1>Welcome to mm</h1>
</div>
CSS:
#navigationBar {
background-color:#660099;
text-align:center;
}
.navigationButton {
background-color:transparent;
border-bottom:2px solid transparent;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:arial;
font-size:17px;
padding:16px 31px;
text-decoration:none;
text-shadow:0px 1px 0px #2f6627;
}
.navigationButtonSelected {
background-color:transparent;
border-bottom:2px solid #18ab29;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:arial;
font-size:17px;
padding:16px 31px;
text-decoration:none;
text-shadow:0px 1px 0px #2f6627;
}
.navigationButton:hover {
border-bottom:2px solid #18ab29;
}
.navigationButton.navigationButtonSelected:active {
position:relative;
top:1px;
}
每个像素11个字节?你有没有考虑将它保存为PNG? – 2015-04-04 21:44:50
@squeamishossifrage首先,我尝试了一个PNG ..具有相同的结果。所以这不会导致问题,我更喜欢无损可扩展存储/ 0.01ms更长的下载 – MMike 2015-04-04 22:53:58
如果png出现同样的情况,那么这不是一个SVG问题,您应该重新编写问题,重新编写并重新记录问题。 – 2015-04-05 06:15:26