单个div+css实现剃须刀刮胡刀效果代码

代码语言:html

所属分类:布局界面

代码描述:仅仅使用单个div和部分css代码就实现剃须刀刮胡刀效果

代码标签: css 刮胡刀 剃须刀

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">




    <style>
        body {
          min-height: 250px;
          height: 100vh;
        }
        #dots {
          width: 100%;
          height: 100%;
          position: relative;
          background-color: #eee;
          background-repeat: no-repeat, repeat;
          background-image: linear-gradient(#eee, #eee), radial-gradient(circle, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0) 31%);
          background-size: 40% 11em, 1em 1em;
          background-position: 0 50%, 50% 50%;
          font-size: 10px;
        }
        @media (max-width: 400px) {
          #dots {
            font-size: 7px;
          }
        }
        #dots:before,
        #dots:after {
          display: block;
          content: '';
          position: absolute;
          left: 40%;
          top: 50%;
        }
        #dots:before {
          width: 4.5em;
          height: 12em;
          margin-left: -1em;
          margin-top: -5.6em;
          background-repeat: no-repeat;
          background-image: linear-gradient(45deg, white .........完整代码请登录后点击上方下载按钮下载查看

网友评论0