css3 怎么实现像书籍装订线的效果?
大家讲道理
大家讲道理 2017-04-17 11:30:29
0
2
614

css 怎么实现像书籍装订线的效果?不用图片的纯css3实现

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
迷茫
{
    width: 150px;
    height: 150px;
    margin: 20% auto;
    background-color: white;
    background-image: repeating-linear-gradient(to right, #aaa 5%, #eee 10%, #ccc 15%);
    box-shadow: 5px 5px 2px #eee;
      border-radius: 5px;
}

Effect:

repeating-linear-gradient(to right, #aaa 5%, #eee 10%, #ccc 15%);

The most important thing is this sentence, repeated linear gradient, the first parameter is to the right, the next three are the color gradient points and positions, for example #aaa 5% starts the gradient from 5%, and before 5% Pure #aaa color, the same for the next two, and then repeat this gradient.

巴扎黑

The answer is the same as your jagged question
Use css3linear-gradient

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template