0

ページの上にこれらのボタンがありますが、問題は、クロムがこれらのボタンを右側に 80 ピクセル以上表示することです。私は何を間違っていますか?

これは 1 つのボタンのスタイルです。

#engleza1{
position: relative;
top:0px;
left: 788px;
width: 51px;
height:42px;
}
#engleza1:hover{
position: relative;
top:0px;
left: 788px;
width: 51px;
height:42px;
background:url(../images/engleza.png) no-repeat;
cursor: pointer;
}

そして、これは彼らのラッパーのスタイルです:

#wrap{
width:100%;
height: 1950px;
text-align: center;
margin:0 auto;
overflow: hidden;
background:url(../ong.png) center no-repeat;
}

html:

<div id="wrap">
<div id="engleza1">
//nothing here
</div>
...
</div>
4

1 に答える 1

1

こんにちは、いくつかのコードが繰り返されているので、rmove してこれを置き換えます

#wrap{
height: 1950px;
text-align: center;
margin:0 auto;
overflow: hidden;
background:red;
}
#engleza1{
position: relative;
top:0px;
  left:788px;
width: 51px;
height:42px;
  background:yellow;
}
#engleza1:hover{
background:green;
cursor: pointer;
}

レイアウトに応じてデモを変更する

ライブデモ

于 2012-09-18T08:12:46.663 に答える