程序员的知识教程库

网站首页 > 教程分享 正文

麦客CRM赞助极客编程挑战#019:生成个人头像悬浮伸缩式菜单效果

henian88 2025-03-20 15:00:51 教程分享 7 ℃ 0 评论

本期挑战:

给定如下HTML代码

    • 介绍
    • 动态
    • 技能
    • 背景

  • 相关CSS代码如下:

    1. @import "//cdn.gbtags.com/font-awesome/4.1.0/css/font-awesome.min.css";

    2. html {

    3. background: #d7d9d9;

    4. font-family: 'microsoft yahei' ,Arial,sans-serif;

    5. }

    6. *, html, body {

    7. font-family: Open Sans;

    8. }

    9. ul, li {

    10. margin: 0;

    11. padding: 0;

    12. list-style-type: none;

    13. }

    14. .container {

    15. margin: 40px auto 0;

    16. width: 143px;

    17. }

    18. .profile-container {

    19. position: relative;

    20. width: 143px;

    21. float: left;

    22. }

    23. .profile {

    24. background: #f6f6f6;

    25. float: left;

    26. padding: 4px;

    27. border-radius: 3px;

    28. -o-border-radius: 3px;

    29. -ms-border-radius: 3px;

    30. -moz-border-radius: 3px;

    31. -webkit-border-radius: 3px;

    32. -webkit-transition: all 0.2s ease-in-out;

    33. -moz-transition: all 0.2s ease-in-out;

    34. -ms-transition: all 0.2s ease-in-out;

    35. -o-transition: all 0.2s ease-in-out;

    36. transition: all 0.2s ease-in-out;

    37. }

    38. .avatar img {

    39. display: block;

    40. border-radius: 3px;

    41. -o-border-radius: 3px;

    42. -ms-border-radius: 3px;

    43. -moz-border-radius: 3px;

    44. -webkit-border-radius: 3px;

    45. }

    46. .follow {

    47. margin: 4px 0 0 0;

    48. }

    49. .follow button {

    50. display: block;

    51. width: 100%;

    52. border: 0;

    53. background: #268cde;

    54. color: white;

    55. padding: 7px 0;

    56. margin: 0;

    57. border-radius: 3px;

    58. -o-border-radius: 3px;

    59. -ms-border-radius: 3px;

    60. -moz-border-radius: 3px;

    61. -webkit-border-radius: 3px;

    62. -webkit-transition: all 0.2s ease-in-out;

    63. -moz-transition: all 0.2s ease-in-out;

    64. -ms-transition: all 0.2s ease-in-out;

    65. -o-transition: all 0.2s ease-in-out;

    66. transition: all 0.2s ease-in-out;

    67. cursor: pointer;

    68. }

    代码挑战要求:

    用户鼠标悬浮在个人头像或者关注按钮后,台阶式展示相关的菜单内容,具体请参考如下动态图片效果(点击以下图片查看动画GIF文件):

    提交方式:

    麦客CRM

    麦客CRM是轻简好用的"表单"在线信息收集和联系人管理工具。区别于传统CRM无法触及海量真实用户,麦客CRM以用户自定义"表单"(活动报名、问卷调研、登记反馈、在线订单等)收集信息,用数据分析帮助企业解决大规模联系人分层管理。辅以EDM、短信功能,帮助企业与客户产生有效联系。(www.mikecrm.com)

    礼品赞助

    本期礼品5份(麦客CRM礼物包:精美记事本+高级笔记本+鼠标垫+围巾) 由麦客CRM鼎力赞助!~~~

    如何增加获奖机率?

    晒晒往期获奖礼物

    点击这里晒晒礼物

    点击“阅读原文”查看具体活动相关信息

    Tags:

    猜你喜欢

    本文暂时没有评论,来添加一个吧(●'◡'●)

    欢迎 发表评论:

    最近发表
    标签列表