tnblog
首页
视频
资源
登录

好看的a标签

8814人阅读 2019/4/22 0:51 总访问:3467498 评论:1 收藏:0 手机
分类: 前端

哎~!最近各种踏青,停电都遇上了代码的事可能落下好远了吧!!

本人不会制作GIF所以只有静态图了

图:

看起来好像还不错,360什么的就不要在意了

html:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title></title>
  6. <link rel="stylesheet" type="text/css" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"/>
  7. <link rel="stylesheet" type="text/css" href="css/style.css"/>
  8. </head>
  9. <body>
  10. <div class="searwide s1">
  11. <div class="alist">
  12. <a href="#" class="fas fa-biohazard"></a>
  13. <a href="#" class="fas fa-pizza-slice"></a>
  14. <a href="#" class="fas fa-air-freshener"></a>
  15. <a href="#" class="fab fa-envira"></a>
  16. </div>
  17. </div>
  18. <div class="searwide s2">
  19. <div class="alist">
  20. <a href="#" class="fas fa-biohazard"></a>
  21. <a href="#" class="fas fa-pizza-slice"></a>
  22. <a href="#" class="fas fa-air-freshener"></a>
  23. <a href="#" class="fab fa-envira"></a>
  24. </div>
  25. </div>
  26. <div class="searwide s3">
  27. <div class="alist">
  28. <a href="#" class="fas fa-biohazard"></a>
  29. <a href="#" class="fas fa-pizza-slice"></a>
  30. <a href="#" class="fas fa-air-freshener"></a>
  31. <a href="#" class="fab fa-envira"></a>
  32. </div>
  33. </div>
  34. <div class="searwide s4">
  35. <div class="alist">
  36. <a href="#" class="fas fa-biohazard"></a>
  37. <a href="#" class="fas fa-pizza-slice"></a>
  38. <a href="#" class="fas fa-air-freshener"></a>
  39. <a href="#" class="fab fa-envira"></a>
  40. </div>
  41. </div>
  42. </body>
  43. </html>

css:

  1. body{
  2. padding: 0;
  3. margin: 0;
  4. }
  5. .searwide{
  6. height: 25vh;
  7. display: flex;
  8. justify-content: center;
  9. align-items: center;
  10. }
  11. .s1{
  12. background: orangered;
  13. }
  14. .s2{
  15. background: lightblue;
  16. }
  17. .s3{
  18. background: greenyellow;
  19. }
  20. .s4{
  21. background: slateblue;
  22. }
  23. .alist{
  24. position: relative;
  25. box-sizing: border-box;
  26. }
  27. .alist a{
  28. position: relative;
  29. color: #fff;
  30. text-decoration: none;
  31. margin: 0 20px;
  32. width: 80px;
  33. height: 80px;
  34. font-size: 30px;
  35. cursor: pointer;
  36. border-radius: 50%;
  37. }
  38. .alist a::before{
  39. position: absolute;
  40. left: 50%;
  41. top: 50%;
  42. transform: translate(-50%,-50%);
  43. z-index: 1;
  44. }
  45. .alist a::after{
  46. content: '';
  47. left: 0;
  48. top: 0;
  49. width: 100%;
  50. height: 100%;
  51. border-radius: 50%;
  52. z-index: 0;
  53. position: absolute;
  54. }
  55. .s1 .alist a:after{
  56. border: 2px powderblue dashed;
  57. }
  58. .s1 .alist a:hover::after{
  59. animation: ro 5s linear infinite;
  60. }
  61. @keyframes ro{
  62. from{
  63. transform: rotate(0);
  64. }
  65. to{
  66. transform: rotate(360deg);
  67. }
  68. }
  69. .s2 .alist a::after{
  70. border: 1px white solid;
  71. box-sizing: border-box;
  72. }
  73. .s2 .alist a:hover{
  74. animation: ro 3s linear infinite;
  75. }
  76. .s3 .alist a{
  77. color: rgba(0,0,0,1);
  78. border: 4px white solid;
  79. }
  80. .s3 .alist a::after{
  81. background-color: white;
  82. transition: 0.2s;
  83. }
  84. .s3 .alist a:hover::after{
  85. transform: scale(.9);
  86. }
  87. .s4 .alist a{
  88. color: black;
  89. border: 4px white solid;
  90. }
  91. .s4 .alist a::after{
  92. background-color: white;
  93. transition: 0.2s;
  94. }
  95. .s4 .alist a:hover{
  96. color: rgba(0,0,0,0);
  97. }
  98. .s4 .alist a:hover::after{
  99. transform: scale(.9);
  100. opacity: 0;
  101. }


2019-04-22 0:51  哇~www!


欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739

评价

剑轩

2019/4/22 13:52:42

看着灰常不错[赞][赞]。哈哈,css代码是不是又贴成html的了

好看的搜索框

直接上代码&lt;!DOCTYPEhtml&gt; &lt;htmllang=&quot;en&quot;&gt; &lt;head&gt; &lt;metacharset=&quot;UTF-8&quot;&gt...

flex好看的相册

先让大家看看效果图吧:需要引入外来插件:https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magni...

实现好看的文字图片滚动

page Effect:code(You just to need change pictures to achieve the desired effect):&lt;!DOCTYPEhtml&gt; &lt;html&gt;...

手机好看的页面

效果图 代码 index.html &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot...

做一个好看的自定义搜索框

先上个效果图话不多说直接上代码 &lt;divid=&quot;input&quot;&gt; &lt;inputtype=&quot;text&quot;id=&quot;search&qu...

好看的CSS字体效果

效果图 代码 index.html &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&qu...

好看的好友列表页

index.html &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot; /&gt;...

一个div写出好看的按钮

效果图代码如下,最主要的就是行高,可以让字体在中间,不要设置什么top就可以居中

好看的文件管理

HTML &lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;UTF-8&quo...

好看的登录页

Html: &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; ...

好看的打勾打叉符号

✘ 复制✗ 复制✕ 复制✖ 复制❌ 复制❎ 复制⛒ 复制🗴 复制☒ 复制🗶 复制🗷 复制⛌ 复制⛝ 复制🗵 ...

vue uni-app,微信小程序,app 自定义搜索框 好看的搜索框。自定义搜索按钮搜索栏,左边输入框右边搜索按钮,搜索图标。element ui

[TOC]效果一这个是小程序端的用的 设计图: view: &lt;view class=&quot;seach-box&quot;&gt; &lt;view class=&quo...

好看的渐变色div效果橙色渐变效果

&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;UTF-8&quot;&gt;...

css弹性盒子,flex布局

css弹性盒子由于版本不同浏览器问题造成了一些不同的写法display:flexbox;在google浏览器中如果使用下面的写法就不行displa...

css图片和文字对齐问题

文字和图片写到一排经常会出现对不齐的问题 这样感觉图片会上来一点没有和文字对齐,如下图 但是如果修改下html结...
这一世以无限游戏为使命!
排名
2
文章
634
粉丝
44
评论
93
docker中Sware集群与service
尘叶心繁 : 想学呀!我教你呀
一个bug让程序员走上法庭 索赔金额达400亿日元
叼着奶瓶逛酒吧 : 所以说做程序员也要懂点法律知识
.net core 塑形资源
剑轩 : 收藏收藏
映射AutoMapper
剑轩 : 好是好,这个对效率影响大不大哇,效率高不高
ASP.NET Core 服务注册生命周期
剑轩 : http://www.tnblog.net/aojiancc2/article/details/167
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:50010702506256
欢迎加群交流技术