84669 Lernen von Personen
152542 Lernen von Personen
20005 Lernen von Personen
5487 Lernen von Personen
7821 Lernen von Personen
359900 Lernen von Personen
3350 Lernen von Personen
180660 Lernen von Personen
48569 Lernen von Personen
18603 Lernen von Personen
40936 Lernen von Personen
1549 Lernen von Personen
1183 Lernen von Personen
32909 Lernen von Personen
在伪类里,添加一个background:URL()的图片,无法显示,但是在规定高度之后,可以正常显示。具体问题就是模仿bootcss网站,在上面的大背景图中,他是after伪类,没有添加高度就显示了出来。想知道他是怎么做到的。
学习是最好的投资!
在伪类里用绝对定位
position: absolute; top: 0; right: 0; bottom: 0; left: 0;
你是说http://www.bootcss.com/这个网址吗,它给了 padding 啊
:after{content:'';display:block;width:100%;height:300px;background:url(IMG);background-size:cover;}
在伪类里用绝对定位
你是说http://www.bootcss.com/这个网址吗,它给了 padding 啊