【发布时间】:2018-03-09 17:05:36
【问题描述】:
我的网站遇到了以前从未见过的问题。我有 'a' 链接可以转到站点中的其他页面,它们在 Edge、Chrome 和 Safari 中完美运行,但 Firefox 无法打开它们。我只是轻按一下,没有任何反应。
我的导航 CSS 问题:
.navigation {
width: 75%;
position: relative;
left: 13em;
top: 3em;
display: -webkit-flex;
display: flex;
-webkit-justify-content: center;
justify-content: center;
}
.dropbtn {
background-color: transparent;
color: white;
font-size: 34px;
font-family: 'Anton', sans-serif;
border: none;
cursor: pointer;
}
.dropbtn:hover, .dropbtn:focus {
background-color: #680b1e;
}
#about {
position: relative;
display: inline-block;
float: left;
margin-left: 40px;
}
HTML
<div id="about">
<button class="dropbtn"> <a href="about.html"> Book </a> </button>
</div>
【问题讨论】:
-
不阅读html规则时会出现这种情况。
标签: html css google-chrome firefox mozilla