-1

結果なしで CSS を編集しようとしました。フォルダーの位置を確認しましたが、すべて問題ありません (他のフォルダー (ホームページ、製品など) を含む大きなフォルダー プロジェクト)。それらのすべてに、ここに表示されているものに似た独自の CSS があります。もう 1 つの詳細: リンクは昨日動作したので、エラーは CSS 内にあるに違いありません! しかし、同時にインデックス リンクは動作しますが、他のリンクは動作しないため、これは私には意味がありません。

これは HTML です:

<html>
<頭>
</head>
<本体>

<div class="コンテナ流体">
      <div クラス="行">
    <div class="メニューバー">
        <ul id="メニュー">
                <div class="col-3">
                  <リ>
                  <a href="index.html" target="_blank"> <img src="img/apewhite.png" width="200%" height="200%"> </a>
                  </li>
                </div>
                <div class="col-1 ホーム">
                  <リ>
                  <a class= "menu" href="index.html"target="_blank"> ホーム
                  </a>
                  </li>
                </div>
                <div class="col-1 a​​bt">
                  <リ>
                  <a class= "menu" href="../AboutUs/AboutUs.html"target="_blank"> 私たちについて
                  </a>
                  </li>
                </div>
                <div class="col-1 prd">
                  <リ>
                  <a class= "menu" href="../products/products.html"target="_blank"> 製品
                  </a>
                  </li>
                </div>
                <div class="col-2 研究">
                  <リ>
                  <a class= "menu" href="../R&D/R&D.html"target="_blank"> 研究開発
                  </a>
                  </li>
                </div>
                <div class="col-2 ニュース">
                  <リ>
                  <a class= "menu" href="../News_Events/News_&_Events.html" target="_blank"> ニュース&イベント
                  </a>
                  </li>
                </div>
                <div class="col-2 連絡先">
                  <リ>
                  <a class= "menu" href="../Contacts/contacts.html"target="_blank"> 連絡先
                  </a>
                  </li>
                </div>
          </ul>
         
         </div>
         </div>
         </div>

</body>
</html>
/*THIS IS CSS*/

body {
 background-image: url(../img/nanotech.jpg);
  background-size: 105%;
  background-repeat: no-repeat;
  max-width: 105%;
 
  }

.container-fluid
{
width: 105%;
overflow: hidden;
}
.home, .abt, .prd, .research, .news, .contacts {
  margin-top: 12px;

}

.home {
margin-left:1.5%;
  margin-right: 3%;

}

.abt {
  margin-right: 5%;
}

.prd {
margin-right: 4.5%;

}

.research {
  margin-right: 5%;

}  

.news {
  
  margin-right: -1.5%;


}
.contacts {


}

.menu-bar{
opacity: 0.9;
width: 105%;
float: left;
margin: 0;
padding: 0;
background: #B22222;

}

#menu {
 position:relative; /* <- thing I've tried to add */
    z-index:1; /* <- thing I've tried to add */
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: 1em;
    margin-top: 6px;
margin-right: 0;
margin-left:0;
    padding: 0;
    list-style: none;
    height: 60px;
}

#menu li {

 position:relative; /* <- thing I've tried to add*/
    z-index:1; /* <- thing I've tried to add */
    display: block;
    width: 150px;
    height: 30px;
    margin: 2px;
    float: left;/* <- I've tried to get rid of it but the error persists*/
}


ul
{
margin: 0;
padding: 0;
list-style-type: none;
display:inline-flex;

}

a
{
padding: 5px;
color: white;
text-decoration: none;
}

a.menu:link {text-decoration: none} 
a.menu:visited {color : white}
a.menu:active {color : white}
a.menu:hover {color: white}

li ul
{
display: none
}

li:hover ul
{
opacity: 90%;
display: block;
position: absolute;
z-index:1;
height:110px;
width:220px;
padding: 5px;
margin-top: 3%;
background: #B22222;

}
#sub {
margin-top:1%;

  }


li li { border:none; width:150px; }
li li a { padding:2px 2px 2px 10px; }
4

2 に答える 2