我遇到标题中解释的问题; CSS的在线和离线表现不同。
离线,我更改了一些CSS规则以获得我想要的导航。 在线,它恢复到默认外观。
HTML的起草方式如下:
<div class="navbar-fixed">
<nav id="jeboteled">
<div id="boja" class="nav-wrapper">
<div class="row">
<div class="col s12 center-align logoSlikaNav">
<a href="#" data-target="mobile-demo" class="sidenav-trigger">
<i class="material-icons">menu</i>
</a>
<a href="index.html" class="hide-on-med-and-down">
<img style="width: 100px; height:50px;" src="img/opcanamjena/holiday_header.png">
</a>
</div>
<a href="#">
<div class="col s2 center-align hide-on-med-and-down linkDiv tooltipped" data-position="bottom" data-tooltip="Accomodation">
<i class="fas fa-bed"></i>
</div>
</a>
<a href="Adventure.html">
<div class="col s2 center-align hide-on-med-and-down linkDiv tooltipped" data-position="bottom" data-tooltip="Adventure">
<i class="fas fa-motorcycle"></i>
</div>
</a>
<a href="explore.html">
<div class="col s2 center-align hide-on-med-and-down linkDiv tooltipped" data-position="bottom" data-tooltip="Explore">
<i class="fas fa-compass"></i>
</div>
</a>
<a href="Gastronomy.html">
<div class="col s2 center-align hide-on-med-and-down linkDiv tooltipped" data-position="bottom" data-tooltip="Gastronomy">
<i class="fas fa-utensils"></i>
</div>
</a>
<div class="col s2 center-align hide-on-med-and-down linkDiv tooltipped" onclick="overlaycontactopen()" data-position="bottom" data-tooltip="Contact">
<i class="fas fa-info-circle"></i>
</div>
<div class="col s2 center-align hide-on-med-and-down linkDiv tooltipped modal-trigger" href="#jezik" data-position="bottom" data-tooltip="Language">
<i class="fas fa-language"></i>
</div>
</div>
</div>
</nav>
</div>
这是唯一被更改的CSS规则。其他所有内容都与实现css文件一样。
#boja {
background-color: #18185e !important;
}
@media only screen and (min-width: 993px) {
#jeboteled {
height: 150px;
}
}
@media only screen and (min-width: 993px) {
.logoSlikaNav {
transform: translateY(10px);
}
}
.linkDiv {
cursor: pointer;
}
.linkDiv:hover {
background-color: #61b9f6;
}
以下是发布的测试网站。
答案 0 :(得分:0)
正如alexr101在评论中指出的那样,清除缓存就行了!