css怎么实现下边框阴影效果


当前第2页 返回上一页

2.png

1

<div class="box11 shadow"></div>

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

.box11 {

    width: 300px;

    height: 100px;

    background: #ccc;

    border-radius: 10px;

    margin: 10px;

}

 

.shadow {

    position: relative;

    max-width: 270px;

    box-shadow: 0px 1px 4px rgba(0,0,0,0.3),

                0px 0px 20px rgba(0,0,0,0.1) inset;

}

 

.shadow::before,

.shadow::after {

   content:"";

   position:absolute;

   z-index:-1;

}

 

.shadow::before,

.shadow::after {

   content:"";

   position:absolute;

   z-index:-1;

   bottom:15px;

   left:10px;

   width:50%;

   height:20%;

}

 

.shadow::before,

.shadow::after {

   content:"";

   position:absolute;

   z-index:-1;

   bottom:15px;

   left:10px;

   width:50%;

   height:20%;

   box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);

   transform:rotate(-3deg);

}

 

.shadow::after{

   right:10px;

   left:auto;

   transform:rotate(3deg);

 }

更多编程相关知识,请访问:编程视频!!

以上就是css怎么实现下边框阴影效果的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css怎么控制字间距

css如何设置相邻单元格边框之间的距离

css为什么压缩

css什么是浮动

css box-direction属性怎么用

css如何实现背景透明,文字不透明?

css如何实现底部tapbar栏效果

css如何正确命名

手把手教你如何系统学习css

html中是如何引入css样式?以及link与@import的区别(代码实例)

更多相关阅读请进入《css》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...