ホバー上のアンカーの高さと位置を<a>
に変更しようとしています。CSS変更の高さ:ホバー
私が使用しているCSSは次のとおりです。
.options {
\t background: linear-gradient(#FFFFFF, #dbe2e8);
\t \t display: table-cell;
\t \t vertical-align: middle;
\t \t text-align: center;
\t \t width: 115px;
\t \t height: 35px;
\t \t border: 1px solid black;
\t \t border-bottom: none;
\t \t border-radius: 8px 8px 0px 0px;
\t \t -moz-border-radius: 8px 8px 0px 0px;
\t }
.options:hover {
height: 39px;
\t \t top: -4px;
}
<a href="#" class="options"></a>
私が何か間違ったことしなければなりません。私は:top: -4px;
と:ホバー部分を試して、これは動作しますが、height: 39px;
は何もしません。 top
、right
、bottom
とleft
性質が位置relative
、absolute
またはfixed
を適用する場合にのみ動作するため、
おかげ
HTMLコードも追加できますか? –
ホバーで高さが変わる、ここで本当の問題は何ですか? – Sherlock