課程
/前端開發(fā)
/HTML/CSS
/十天精通CSS3
:after 與 ::after 有什么區(qū)別?
2016-03-10
源自:十天精通CSS3 12-3
正在回答
http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E7 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E7 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E8 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E7 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E7 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E8 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E7 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
這個問題前面有人問過,也有人回答了。是因為right的高度比left大造成的,而且應(yīng)該是在ie8+的瀏覽器才有的問題。header('location:目標(biāo)文檔的URL');
偽類和為元素由效果類似而且寫法很相像所以經(jīng)常容易混肴,css3為了區(qū)分兩者,已經(jīng)明確規(guī)定了偽類用一個冒號來表示,而偽元素則用兩個冒號來表示。
偽類:是像某些選擇器添加一些特殊的效果,例如:hover 可以添加一些鼠標(biāo)放上是顯示的效果
偽元素:是用于將特殊的效果添加到某些選擇器,偽元素的效果則需要通過添加一個實際的元素才能達(dá)到。
*******因為兼容性的問題,所以現(xiàn)在大部分還是使用的單冒號*******
希望以上的回答能夠讓大家看明白
單冒號(:)用于CSS3偽類,雙冒號(::)用于CSS3偽元素。
前端開發(fā)工程
1VAN1
神犬小白 回復(fù) 1VAN1
舉報
本課程為CSS3入門教程,深刻詳解CSS3知識讓網(wǎng)頁穿上絢麗裝備
1 回答偽類 :before :after 偽元素 ::before ::after 這倆什么區(qū)別?
1 回答求教::after, ::brfore作用分別是什么
3 回答使用::after制作圓形效果時為什么是a::after而不是li::after?
2 回答::after和::before
1 回答::before和::after
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2022-04-01
http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E7 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E7 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E8 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E7 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E7 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E8 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E7 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E4 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E9 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E6 ... 6%31%33%38%39%38%38
http://tags.tech.sina.com.cn/%E5 ... 6%31%33%38%39%38%38
2022-03-26
這個問題前面有人問過,也有人回答了。是因為right的高度比left大造成的,而且應(yīng)該是在ie8+的瀏覽器才有的問題。header('location:目標(biāo)文檔的URL');
2016-06-08
偽類和為元素由效果類似而且寫法很相像所以經(jīng)常容易混肴,css3為了區(qū)分兩者,已經(jīng)明確規(guī)定了偽類用一個冒號來表示,而偽元素則用兩個冒號來表示。
偽類:是像某些選擇器添加一些特殊的效果,例如:hover 可以添加一些鼠標(biāo)放上是顯示的效果
偽元素:是用于將特殊的效果添加到某些選擇器,偽元素的效果則需要通過添加一個實際的元素才能達(dá)到。
*******因為兼容性的問題,所以現(xiàn)在大部分還是使用的單冒號*******
希望以上的回答能夠讓大家看明白
2016-03-10
單冒號(:)用于CSS3偽類,雙冒號(::)用于CSS3偽元素。