小编Axc*_*eed的帖子

"position:fixed"破坏了CSS网页中的下拉菜单

我正在创建一个网页,当我将鼠标悬停在该.Soccer部分上时,它将下拉并显示Link1,Link2,Link3.

没有position: fixed;,代码工作得很好.正如我想要在网页顶部的标题,我把position: fixed;

但是一旦我把它打开,"足球"的下拉按钮就不起作用了.

html {
  background-image: url("Images/BackgroundImageI.jpg");
  background-repeat: no-repeat;
}

body {
  background-color: White;
  color: Black;
  margin-left: 0%;
  margin-right: 0%;
  margin-top: 40%;
  margin-bottom: 0%;
  border: 10px outset Gray;
}

h1 {
  font-family: Arial, Verdana, Geneva, sans-serrif;
  color: teal;
  text-align: center;
}

p {
  font-family: Arial, Verdana, Geneva, sans-serrif, serrif;
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  line-height: 24px;
}

ul {
  margin-left: 0%;
  margin-right: 0%;
  margin-top: 0%;
  list-style-type: none;
  margin: 0;
  padding: 0;
  top: …
Run Code Online (Sandbox Code Playgroud)

html css css3

5
推荐指数
1
解决办法
5877
查看次数

标签 统计

css ×1

css3 ×1

html ×1