私は、Pinterest がどのように正確にそれを行うかを確認するためにかなりの量の掘り下げを行いましたhover
. これが私が見つけたものです:
これは、Pinterest の典型的なピンです (具体的にはリピン)。
<a class="Button Button11 WhiteButton ContrastButton repin_link" data-componenttype="MODAL_REPIN" data-id="176555247863760400" href="/pin/176555247863760400/repin/" wotsearchprocessed="true">
<em></em><span>Repin</span>
</a>
リピン、いいね、コメント ボタンの CSS は次のとおりです。
.actions.likebutton,
.actions.comment,
.actions.repin_link,
.actions.editbutton,
.actions.unlikebutton {
display: none
}.pin: hover.actions.likebutton,
.pin: hover.actions.comment,
.pin: hover.actions.repin_link,
.pin: hover.actions.editbutton,
.pin: hover.actions.unlikebutton {
display: block
}
基本的に、ピンがホバーされていないときは表示をなしに設定し、ユーザーがピンの上にホバーしているときは、css はそれをブロックとして表示します。実際に要素を調べると、すべてのボタンが表示されますが、ホバーするまで画面に表示されません。a href
もちろん、他のサイトへのリンクは、ユーザーを別のリンクに誘導するを通じて簡単に行われます。お役に立てれば。