css怎么给button设置阴影


当前第2页 返回上一页

1

2

<!--html代码-->

<input class="but" type = "button" value = "确认" />

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

<!--css代码-->

<style type="text/css">

 .but{

 border: 0px groove orange;

 box-shadow: 5px 6px 10px #000;

 margin-left: 160px;

 border-radius: 10px;

 background: #034c92;

 color: white;

 width: 250px;

 height: 40px;

 font-size: 20px;

 }

 .but:hover{

 box-shadow: 8px 10px 10px #000;

 background: #005DF9;

 }

 </style>

【推荐学习:css视频教程】

以上就是css怎么给button设置阴影的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css如何去除inline-block元素间的间距?(多种方法)

css怎么设置鼠标光标形状

css如何实现开关效果

css怎么设置下划线

css font-weight属性怎么用

css字间距怎么设置

html如何选择li的偶数列

css图片后的文字无法居中怎么办

css字符间距怎么设置

css设置主动控件的样式(焦点伪类的实现)

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




打赏

取消

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

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

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

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

评论

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