这可能是一个愚蠢的问题,但我偶然发现了我想要调整和使用的这个令人敬畏的CodePen.我在自己的服务器上启动了一个快速演示,但它没有用.然后我意识到在CodePen旁边它说SCSS,我用Google搜索.我得到了它,但我不知道如何使这个特定的代码工作.
html:
<body>
<div id="paper"> </div>
<div class="wrap">
<a class="two" href="http://db.tt/vkXgwK2P">
<img class="round" src="http://db.tt/vkXgwK2P" alt="">
</a>
<a class="three" href="http://db.tt/Lrtnc768">
<img class="round" src="http://db.tt/Lrtnc768" alt="">
</a>
<a class="one" href="http://db.tt/CSVy5HNR">
<img class="round" src="http://db.tt/CSVy5HNR" alt="">
</a>
<figure>
<img src="http://db.tt/FveX1nYo" alt="">
</figure>
</div>
Run Code Online (Sandbox Code Playgroud)
SCSS:
body {
margin: 0;
}
#paper {
height: 120px;
margin: 0;
background: #303535;
}
.wrap {
margin: 0 auto;
width: 180px;
height: 180px;
border-radius: 50%;
box-shadow: 0 0 0 10px white;
position: relative;
top: -80px;
background: #fff;
a {
margin: 0; …Run Code Online (Sandbox Code Playgroud) sass ×1