第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會有你想問的

4個(gè)都沒變化,且opacity=0屬性沒用

4個(gè)都沒變化,且opacity=0屬性沒用

liangandi 2016-10-29 10:41:46
只是第一個(gè)出現(xiàn)了變化,有顏色有三角形,但是后面4個(gè)無論怎么點(diǎn)都沒變化即使是移到上面也毫無變化,怎么回事?.st-container input:checked + a,.st-container input:checked:hover + a{ background-color: #821134; /*設(shè)置被選中了顏色恒定不變*/}.st-container input:checked + a:after{ content:""; width:0; height:0; overflow: hidden; border: 20px solid transparent; border-bottom-color: #821134; position:absolute; bottom: 100%; left:50%; margin-left: -20px; /*使三角形居中的方法*/ /*溫習(xí)下:after的用法*/}.st-container input:hover + a{ background: #AD244F; /*鼠標(biāo)滑過的背景顏色發(fā)生變化*/}
查看完整描述

3 回答

?
liangandi

TA貢獻(xiàn)1條經(jīng)驗(yàn) 獲得超0個(gè)贊

謝謝,經(jīng)過一天的努力已經(jīng)把她完完全全做出來了...

查看完整回答
反對 回復(fù) 2016-10-29
?
stone310

TA貢獻(xiàn)361條經(jīng)驗(yàn) 獲得超191個(gè)贊

試了下代碼能出

<!DOCTYPE?html>
<html>
<head>
????<title></title>
????<meta?charset="UTF-8">
????<style>
????????.st-container?{
????????????height:?100px;
????????????width:?200px;
????????????position:?relative;
????????}
????????.st-container?input:checked?+?a,
????????.st-container?input:checked:hover?+?a?{
????????????background-color:?#821134;
????????????/*設(shè)置被選中了顏色恒定不變*/
????????}
????????.st-container?input:checked?+?a:after?{
????????????content:?"";
????????????width:?0;
????????????height:?0;
????????????overflow:?hidden;
????????????border:?20px?solid?transparent;
????????????border-bottom-color:?#821134;
????????????position:?absolute;
????????????bottom:?100%;
????????????left:?50%;
????????????margin-left:?-20px;
????????????/*使三角形居中的方法*/
????????????/*溫習(xí)下:after的用法*/
????????}
????????.st-container?input:hover?+?a?{
????????????background:?#AD244F;
????????????/*鼠標(biāo)滑過的背景顏色發(fā)生變化*/
????????}
????</style>
</head>
<body>
<div?class="st-container">
????<input?type="checkbox"/>
????<a>sdfasdfsdf</a>
</div>
<div?class="st-container">
????<input?type="checkbox"/>
????<a>sdfasdfsdf</a>
</div>
<div?class="st-container">
????<input?type="checkbox"/>
????<a>sdfasdfsdf</a>
</div>
<div?class="st-container">
????<input?type="checkbox"/>
????<a>sdfasdfsdf</a>
</div>
</body>
</html>


查看完整回答
反對 回復(fù) 2016-10-29
?
李曉健

TA貢獻(xiàn)1036條經(jīng)驗(yàn) 獲得超461個(gè)贊

你可以給一下完整的代碼看下,包括html代碼

查看完整回答
反對 回復(fù) 2016-10-29
  • 3 回答
  • 0 關(guān)注
  • 2143 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號