change the linear value of gradient hr

前端 未结 1 1671
日久生厌
日久生厌 2021-01-25 23:37

I have a CSS code that change the


to gradient type ,


.....

hr.style-o         


        
相关标签:
1条回答
  • 2021-01-26 00:31

    Change your CSS to

    hr.style-one
    {
        border: 0;
        height: 1px;
        background-image: -webkit-linear-gradient(left, rgba(0,0,0,0.75), rgba(0,0,0,0.75), rgba(0,0,0,0));
        background-image: -moz-linear-gradient(left, rgba(0,0,0,0.75), rgba(0,0,0,0.75), rgba(0,0,0,0));
        background-image: -ms-linear-gradient(left, rgba(0,0,0,0.75), rgba(0,0,0,0.75), rgba(0,0,0,0));
        background-image: -o-linear-gradient(left, rgba(0,0,0,0.75), rgba(0,0,0,0.75), rgba(0,0,0,0));
    }
    

    Follow FIDDLE

    0 讨论(0)
提交回复
热议问题