Html CSS单独的背景统计数据
我目前有以下代码行:Html CSS单独的背景统计数据,html,css,Html,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') 有没有办法将“url”部分分隔到另一行?有。可以在属性值的各个部分之间放置任何空格 background: linear-gradient( rgba(0, 0, 0, 0.5),
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')
有没有办法将“url”部分分隔到另一行?有。可以在属性值的各个部分之间放置任何空格
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')
…但在指定多个背景图像时,必须同时指定所有背景图像,因此不能在多个属性指定之间拆分