问答详情
源自:5-5 CSS3背景 制作导航菜单综合练习题

linear-gradient

background: -moz-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,.2) 50%, rgba(255,255,255,0));

  background: -webkit-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,.2) 50%, rgba(255,255,255,0));

  background: -o-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,.2) 50%, rgba(255,255,255,0));

  background: -ms-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,.2) 50%, rgba(255,255,255,0));

  background: linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,.2) 50%, rgba(255,255,255,0));

请问:这里的参数50%是什么含义?

提问者:不骄不躁306 2020-01-11 15:16

个回答

  • 慕瓜606597
    2020-01-31 09:52:25

    50%为透明参数,取值在0和1直接,不可为负值哦?