課程
/前端開發
/HTML/CSS
/十天精通CSS3
:after 與 ::after 有什么區別?
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大造成的,而且應該是在ie8+的瀏覽器才有的問題。header('location:目標文檔的URL');
偽類和為元素由效果類似而且寫法很相像所以經常容易混肴,css3為了區分兩者,已經明確規定了偽類用一個冒號來表示,而偽元素則用兩個冒號來表示。
偽類:是像某些選擇器添加一些特殊的效果,例如:hover 可以添加一些鼠標放上是顯示的效果
偽元素:是用于將特殊的效果添加到某些選擇器,偽元素的效果則需要通過添加一個實際的元素才能達到。
*******因為兼容性的問題,所以現在大部分還是使用的單冒號*******
希望以上的回答能夠讓大家看明白
單冒號(:)用于CSS3偽類,雙冒號(::)用于CSS3偽元素。
前端開發工程
1VAN1
神犬小白 回復 1VAN1
舉報
本課程為CSS3入門教程,深刻詳解CSS3知識讓網頁穿上絢麗裝備
1 回答偽類 :before :after 偽元素 ::before ::after 這倆什么區別?
3 回答使用::after制作圓形效果時為什么是a::after而不是li::after?
1 回答求教::after, ::brfore作用分別是什么
2 回答::after和::before
1 回答::before和::after
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
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大造成的,而且應該是在ie8+的瀏覽器才有的問題。header('location:目標文檔的URL');
2016-06-08
偽類和為元素由效果類似而且寫法很相像所以經常容易混肴,css3為了區分兩者,已經明確規定了偽類用一個冒號來表示,而偽元素則用兩個冒號來表示。
偽類:是像某些選擇器添加一些特殊的效果,例如:hover 可以添加一些鼠標放上是顯示的效果
偽元素:是用于將特殊的效果添加到某些選擇器,偽元素的效果則需要通過添加一個實際的元素才能達到。
*******因為兼容性的問題,所以現在大部分還是使用的單冒號*******
希望以上的回答能夠讓大家看明白
2016-03-10
單冒號(:)用于CSS3偽類,雙冒號(::)用于CSS3偽元素。