::before中content插入圖片失敗了~_html/css
來源:懂視網
責編:小采
時間:2020-11-27 16:35:38
::before中content插入圖片失敗了~_html/css
::before中content插入圖片失敗了~_html/css_WEB-ITnose:.sidenav ul li > img::before { content: url(images/c1w.png); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; -webkit-transition: -webkit-transform 0.3s; transition: transform 0.3s; -webkit-transfo
導讀::before中content插入圖片失敗了~_html/css_WEB-ITnose:.sidenav ul li > img::before { content: url(images/c1w.png); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; -webkit-transition: -webkit-transform 0.3s; transition: transform 0.3s; -webkit-transfo

.sidenav ul li > img::before {
content: url(images/c1w.png);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
-webkit-transition: -webkit-transform 0.3s;
transition: transform 0.3s;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
.sidenav ul li:hover > img::before{
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
請問哪里出錯了
回復討論(解決方案)
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000 url('images/c1w.png');
content: ' ';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000 url('images/c1w.png');
不行QAQ~
沒人知道嗎
知道了,我的天,為什么明明是當前文件夾下的卻要用url(../images/c1w.png)而不是ul(images/c1w.png)
知道了,我的天,為什么明明是當前文件夾下的卻要用url(../images/c1w.png)而不是ul(images/c1w.png)
你可以結貼了。
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
::before中content插入圖片失敗了~_html/css
::before中content插入圖片失敗了~_html/css_WEB-ITnose:.sidenav ul li > img::before { content: url(images/c1w.png); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; -webkit-transition: -webkit-transform 0.3s; transition: transform 0.3s; -webkit-transfo