2016-11-12 55 views
3
background: url(image) 0/cover fixed; 

爲什麼會出現:什麼是/在CSS中?

  • 一個0(零)?
  • A /(正斜槓)?

這是什麼意思/在CSS做?

+1

http://stackoverflow.com/questions/7864448/background-size-in-shorthand-background-property-css3 – selami

+0

這是速記CSS – mrid

+0

謝謝!我不知道要尋找什麼才能找到。 –

回答

2

這只是爲HTML頁面指定背景圖片的簡寫。完全等同於:

background: url(image); 
background-margin: 0 
background-size: cover; 
background-position: fixed;