2017-01-22 39 views
0

目前,我有下面的代码行:CSS独立的后台统计

background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://static.pexels.com/photos/48727/pexels-photo-48727.jpeg') 

有没有什么办法可以分开“网址”部分,另一条线?

回答

1

是的。您可以在属性值的各个部分之间放置任何空格。

background: linear-gradient(rgba(0, 0, 0, 0.5), 
      rgba(0, 0, 0, 0.5)), 
      url('https://static.pexels.com/photos/48727/pexels-photo-48727.jpeg') 

...但指定多个背景图片的时候,你必须一次指定所有这些,所以你不能多属性分配之间将它分割。

+0

非常感谢您的回答。 :) –