:リンク上にユーザーがマウスを置いたときに、私は、各リンクの背景として、このような何かをしようとしています
フィドル:形状の https://jsfiddle.net/emils/8xgp602n/
一般的なアイデアを:
#flag {
width: 110px;
height: 56px;
padding-top: 15px;
position: relative;
background: red;
color: white;
font-size: 11px;
letter-spacing: 0.2em;
text-align: center;
text-transform: uppercase;
}
#flag:after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 0;
border-bottom: 13px solid #eee;
border-left: 55px solid transparent;
border-right: 55px solid transparent;
}
どのようにすれば#flag:after
の部分が各リストiの真中にあるかテン?
私は、もう少し「応答」ようにする方法があった望みました。私はjQueryを試してみましたが、jQueryを使ってCSSを:: afterに追加することはできません。 – Rudolph