我正在尝试删除覆盖它的渐变:
-webkit-linear-gradient(right,#1a5cce, #00c7ce 85%);
background: -moz-linear-gradient(right,#1a5cce, #00c7ce 85%);
background: -o-linear-gradient(right,#1a5cce, #00c7ce 85%);
background: linear-gradient(right,#1a5cce, #00c7ce 85%);
我试过:
background: -webkit-linear-gradient(none);
background: -moz-linear-gradient(none);
background: -o-linear-gradient(none);
background: linear-gradient(none);
我不是css专家,我想做的是完全去除渐变,这可能吗?
只需设置background: initial
。所有 CSS 属性都允许 initial
值将其值恢复为初始状态。使用此属性,您不想为特定的属性默认值而烦恼。
您也可以使用 background: none
作为 background
属性。
我是一名优秀的程序员,十分优秀!