css布局实现一个电子名片效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现一个电子名片效果代码

代码标签: 一个 电子名片 效果

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

<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        figure.snip0056 {
          font-family: 'microsoft yahei';
          position: relative;
          overflow: hidden;
          margin: 10px auto;
          min-width: 380px;
          max-width: 480px;
          width: 100%;
          background: #ffffff;
          color: #000000;
        }
        figure.snip0056 * {
          -webkit-box-sizing: border-box;
          box-sizing: border-box;
        }
        figure.snip0056 > img {
          width: 50%;
          border-radius: 50%;
          border: 4px solid #ffffff;
          -webkit-transition: all 0.35s ease-in-out;
          transition: all 0.35s ease-in-out;
          -webkit-transform: scale(1.6);
          transform: scale(1.6);
          position: relative;
          float: right;
          right: -15%;
          z-index: 1;
        }
        figure.snip0056 figcaption {
          padding: 20px 30px 20px 20px;
          position: absolute;
          left: 0;
          width: 50%;
        }
        figure.snip0056 figcaption h2,
        figure.snip0056 figcaption p {
          margin: 0;
          text-align: left;
          padding: 10px 0;
          width: 100%;
        }
        figure.snip0056 figcaption h2 {
          font-size: 1.3em;
          font-weight: 300;
          text-transform: uppercase;
          border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        }
        figure.snip0056 figcaption h2 span {
          font-weight: 800;
        }
        figure.snip0056 figcaption p {
          font-size: 0.9em;
          opacity: 0.8;
        }
        figure.snip0056 figcaption .icons {
          width: 100%;
          text-align: left;
        }
        figure.snip0056 figcaption .icons i {
          font-size: 26px;
          padding: 5px;
          top: 50%;
          color: #000000;
        }
        figure.snip0056 figcaption a {
          opacity: 0.3;
          -webkit-transition: opacity 0.35s;
          transition: opacity 0.35s;
        }
        figure.snip0056 figcaption a:hover {
          opacity: 0.8;
        }
        figure.snip0056 .position {
          width: 100%;
          text-align: left;
          padding: 15px 30px;
          font-size: 0.9em;
          opacity: 1;
          font-style: italic;
          color: #ffffff;
          background: #000000;
          .........完整代码请登录后点击上方下载按钮下载查看

网友评论0