☀【CSS3】icon
2013-11-11 11:41
288 查看
Navicon Transformicons: Animated Navigation Icons with CSS Transforms http://sarasoueidan.com/blog/navicon-transformicons/
CSS3 box-shadow http://www.w3cplus.com/content/css3-box-shadow
CSS3 box-shadow http://www.w3cplus.com/content/css3-box-shadow
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title></title> <style> button {display: inline-block;margin: 0 1em;border: none;background: none;background: #000;} button span {display: block;} .grid-button {padding: 2rem;cursor: pointer;user-select: none;} .grid-button .grid {width: 1rem;height: 1rem;background: #ecf0f1;color: #ecf0f1;transition: 0.3s;} .grid-button.collapse .grid {box-shadow: -1.25rem 0, -1.25rem 1.25rem, 1.25rem 0, 1.25rem -1.25rem, 0 -1.25rem, -1.25rem -1.25rem, 0 1.25rem, 1.25rem 1.25rem;} </style> </head> <body> <button type="button" role="button" aria-label="Toggle Navigation" class="grid-button collapse"> <span class="grid"></span> </button> </body> </html>
相关文章推荐
- css制作的各种图形
- css 导航栏选中背景高亮显示
- ☀【CSS3】背景图片
- [css layout][05] three percentage columns
- WP8开发学习(4):Style样式的四种使用
- CSS如何设置html table表格边框样式
- TX Text Control使用样式表处理Word文档的小技巧
- 一分钟让你明白CSS中的盒模型
- CSS中zoom:1的作用 ,小标签大作用
- 为joolma 的每一篇文章配置自定义样式
- 分享36个令你意想不到的 CSS3 动画效果网页
- css float清理clear方法
- [css layout][04] three percentage columns
- CSS3 动画一瞥
- HTML文本框 圆角显示 样式设置方法
- Flex中TabNavigator设置Tabs样式
- CSS样式id和class属性优先级问题
- 精通css(7)-实例
- DIV+CSS 命名规范
- [转]CSS中继承性属性和非继承性的属性