zoukankan      html  css  js  c++  java
  • css那点事儿

    之前看到的觉得很有意思的a标签的css样式

    效果如下

    代码如下:

    <style>
        :root {
          --link-background-color: 189, 195, 199;
          --link-background-opacity: 0.5;
          --link-background-opacity-hover: 0.7;
          --accent-color: #34495e;
        }
    
        a {
          text-decoration: none;
          color: var(--accent-color);
    
        }
    
        a.link {
          box-shadow: 0px -2px 0px rgba(var(--link-background-color),
              var(--link-background-opacity)) inset;
          transition: all 0.3s ease;
        }
    
        a.link:hover {
          box-shadow: 0px -10px 0px rgba(var(--link-background-color),
              var(--link-background-opacity-hover)) inset;
        }
    
        del {
          background-color: #ddd;
          border-radius: 2px;
          color: rgba(0, 0, 0, 0);
          text-decoration: none;
          cursor: default;
          /* -webkit-transition: color .15s ease, background-color .15s ease; */
          /* -o-transition: color .15s ease, background-color .15s ease; */
          transition: color .15s ease, background-color .15s ease
        }
    
        del:hover {
          color: #383838;
          background-color: rgba(0, 0, 0, 0)
        }
      </style>
    </head>
    
    <body>
      <a class="link" rel="noopener" href="https://blog.jimmycai.com/p/new-theme-stack/">我有一壶酒,足以慰平生</a>
      <del> 一颗草莓头子 </del>
    </body>
  • 相关阅读:
    PHP Session 变量
    PHP Cookie是什么
    PHP 文件上传
    PHP 文件处理
    PHP include 和 require 语句
    Mac pycharm专业版安装以及破解方法
    bzoj3946: 无聊的游戏
    win10 uwp 九幽图床
    win10 uwp 九幽图床
    git无法pull仓库refusing to merge unrelated histories
  • 原文地址:https://www.cnblogs.com/vivin-echo/p/14453324.html
Copyright © 2011-2022 走看看