<div class="site-logo">
<a href="/">
<img src="/assets/images/kvejborg-logo.svg" alt="Kvejborg ApS logo">
</a>
</div>
@media screen and (min-width: 64em)
.site-logo img {
width: auto;
height: 100%;
}
答案 0 :(得分:0)
在logo / img上添加display: block;
似乎可以解决问题
答案 1 :(得分:0)
您是否尝试添加支持Chrome所有主流浏览器的代码行?它应该看起来像这样
nav {
background-color: red;
background-image: url(gradient-slice.png);
background-image: -webkit-linear-gradient(top right, #A60000, #FFFFFF);
background-image: webkit-linear-gradient(top right, #A60000, #FFFFFF);
background-image: -moz-linear-gradient(top right, #A60000, #FFFFFF);
background-image: -ms-linear-gradient(top right, #A60000, #FFFFFF);
background-image: -o-linear-gradient(top right, #A60000, #FFFFFF);
background-image: linear-gradient(top right, #A60000, #FFFFFF);
}
-webkit- prefixed属性可用于基于WebKit的浏览器,例如Chrome和Safari -moz-前缀属性可以在Firefox中使用 -ms-前缀属性将在Internet Explorer中使用 -o-前缀属性将在Opera中运行