html中button的立体效果圆角
来源:互联网 发布:2012年cba总决赛数据 编辑:程序博客网 时间:2024/06/06 01:05
首先先做一个按钮,
- <a href="#" class="button myconfirm">button</a>
- 这样就有了一个没有背景样式的跳转文字,然后用css添加样式/
.button { display: inline-block; //用于设置宽高 position: relative; margin: 10px; padding: 0 20px; text-align: center; text-decoration: none; font: bold 12px/25px Arial, sans-serif; }
<span style="color:#0000ff;"><strong>上颜色</strong></span><pre name="code" class="html">.myconfirm { color: #030321; background: #a5cd4e; }
设置圆角<pre name="code" class="html">.button { display: inline-block; position: relative; margin: 10px; padding: 0 20px; text-align: center; text-decoration: none; font: bold 12px/25px Arial, sans-serif; text-shadow: 1px 1px 1px rgba(255,255,255, .22); -webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px; -webkit-box-shadow: 1px 1px 1px rgba(0,0,0, .29), inset 1px 1px 1px rgba(255,255,255, .44); -moz-box-shadow: 1px 1px 1px rgba(0,0,0, .29), inset 1px 1px 1px rgba(255,255,255, .44); box-shadow: 1px 1px 1px rgba(0,0,0, .29), inset 1px 1px 1px rgba(255,255,255, .44); -webkit-transition: all 0.15s ease; -moz-transition: all 0.15s ease; -o-transition: all 0.15s ease; -ms-transition: all 0.15s ease; transition: all 0.15s ease; }
立体效果<pre name="code" class="html">/* Green Color */ .green { color: #3e5706; background: #a5cd4e; /* Old browsers */ background: -moz-linear-gradient(top, #a5cd4e 0%, #6b8f1a 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a5cd4e), color-stop(100%,#6b8f1a)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #a5cd4e 0%,#6b8f1a 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #a5cd4e 0%,#6b8f1a 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #a5cd4e 0%,#6b8f1a 100%); /* IE10+ */ background: linear-gradient(top, #a5cd4e 0%,#6b8f1a 100%); /* W3C */ } /* Blue Color */ .blue { color: #19667d; background: #70c9e3; /* Old browsers */ background: -moz-linear-gradient(top, #70c9e3 0%, #39a0be 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#70c9e3), color-stop(100%,#39a0be)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #70c9e3 0%,#39a0be 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #70c9e3 0%,#39a0be 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #70c9e3 0%,#39a0be 100%); /* IE10+ */ background: linear-gradient(top, #70c9e3 0%,#39a0be 100%); /* W3C */ } /* Gray Color */ .gray { color: #515151; background: #d3d3d3; /* Old browsers */ background: -moz-linear-gradient(top, #d3d3d3 0%, #8a8a8a 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d3d3d3), color-stop(100%,#8a8a8a)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #d3d3d3 0%,#8a8a8a 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #d3d3d3 0%,#8a8a8a 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #d3d3d3 0%,#8a8a8a 100%); /* IE10+ */ background: linear-gradient(top, #d3d3d3 0%,#8a8a8a 100%); /* W3C */ }
0 0
- html中button的立体效果圆角
- html table立体效果实例
- html小总结:表格立体效果的实现.
- 安卓带点击效果的圆角button
- WPF中制作立体效果的文字或LOGO图形
- HTML中button和input button的区别
- html 中submit和button的区别
- html中submit和button的区别
- anroid的Button的边框圆角效果
- Android Button 带点击效果的圆角
- Button---圆角的Button
- android 在selector中同时设置button的圆角和点击效果,简单颜色无需美工
- Button的抖动效果
- 漂亮的CSS立体表格效果
- 如何实现立体盒子的效果
- jQuery实现的立体文字渐变效果
- 自定义Gallery实现立体,倒影的效果
- 自定义Gallery实现立体,倒影的效果
- 七、对vi 编辑器的补充
- 深度学习调参技巧
- linux用户,分组,权限,文件权限
- [leetcode] 【字符串】 14. Longest Common Prefix
- windows 安装subversion1.9.4及配置
- html中button的立体效果圆角
- 导出下载多个Excel文件并打包成zip文件
- java中form以post、get方式提交数据中文乱码问题总结
- 八、Linux源码包编译和安装
- 基于原生Canvas来绘制的各种图表
- 抓包工具,查看浏览器缓存的密码以及网络密码
- 用IBM Bluemix搭建云平台流程
- git&github使用笔记(一)——Git建立本地库,并上传Github
- ccah-500 第34题 you want to change a configuration parameter so that it affects all six DataNodes