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盒子模型尺寸如何计算

css border-bottom-color属性怎么用

css box-ordinal-group属性怎么用

css如何实现元素不随滚动条滚动

css如何添加阴影边框(代码实例)

css怎么把按钮上移

display:block属性的作用是什么

css怎么把字体加粗加大

css字体溢出怎么隐藏

详解css行高line-height属性

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




打赏

取消

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

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

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

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

评论

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