に表示されるテーブルセルのCSSに私は私のコンテナ(テーブルセル)私は:)ホバーは、すべての行
状況を望んたいどのように動作していない理由を理解するために苦労している:私はdivのコンテナを作成しました2つのdiv(イメージとテキスト)を持つ(bouton)。 必要なもの:コンテナの任意の場所に移動すると、背景色が適用されます。 問題:divコンテナー(bouton)に背景色のホバーを追加しましたが、すべてのdiv "bouton"に適用するだけではなく、すべての行に適用します。ここで
はフィドルです: https://jsfiddle.net/gicspy/qotv4yz0/3/HTML:
<div id="bouton">
<a href="/test/" title="test">
<div class="bouton-image">
<img class="clear-btn-devis" src="http://via.placeholder.com/100x120" width="100" height="120">
</div>
<div class="bouton-texte">
THIS IS CONTENT FOR THE BUTTON
<br /><span style="font-size:90% !important;"><p style="line-height: 1 !important;">(with more information even)</p></span>
</div>
</a>
</div>
CSS:私が見てきたが、私は、テーブルのセルがどのように動作するかで何かが欠けてい
#bouton div {
display: table-cell;
cursor: pointer;
background-color: #1ac658;
color: #ffffff !important;
padding: 5px;
border: 0px;
margin: 4px 2px;
margin-top: 20px;
margin-bottom: 20px;
text-align: center;
vertical-align: middle;
max-width: 300px;
}
.bouton-image {
display: table;
border-radius: 3px 0px 0px 3px;
min-width: 70px !important;
margin: auto;
text-align: center;
overflow: hidden;
}
.bouton-texte {
border-radius: 0px 3px 3px 0px;
font-size: 130%;
text-decoration: none;
font-weight: bold;
}
#bouton:hover,
#bouton:active {
-webkit-transition-duration: 0.4s;
background-color: #f6416c !important;
box-shadow: 0 6px 13px 0 rgba(0, 0, 0, 0.2), 0 4px 16px 0 rgba(0, 0, 0, 0.19);
}
。
いずれかお手伝いできますか?
どうもありがとう、
を:https://jsfiddle.net/ qotv4yz0/4 /;)ポインタイベントとホバー効果のためのの表示https://jsfiddle.net/qotv4yz0/5/ –