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怎么设置span的宽度

css实现背景图片拉伸填充

css三种样式表写法是什么

css命名规范是什么

css如何解决不同浏览器下文本兼容的问题

css语法错误有哪些

css如何设置图片不重复拉伸

css段落间距怎么设置

深入浅析css text-emphasis属性,看看它的用法!

eclipse css中文乱码怎么办

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




打赏

取消

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

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

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

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

评论

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