這是我發瘋,我以前見過它,但不能複製,或找到它或它的任何資源。我正在做的是帶有皮革紋理和「縫合圖案」的垂直色帶。拆線工作的方式是很簡單的,用虛線邊框內的div,甚至帶狀是很容易的使用僞:after
類,但兩者結合只是不打算打算。CSS只紋理和「拼接」絲帶
這是我對CSS是工作,所以到目前爲止(這是所有的CSS減去皮革質地完成):
.wrapleather {
width:100px;
height:120px;
\t float: right;
\t margin-right:20px;
background-image : url("leather.png");
border-radius: 5px;
-webkit-box-shadow: 0px 1px 10px rgba(0,0,0,0.5);
-moz-box-shadow: 0px 1px 10px rgba(0,0,0,0.5);
box-shadow: 0px 1px 10px rgba(0,0,0,0.5);
\t position:relative;
}
.wrapleather:after {
\t content: '';
display: block;
width: 0;
height: 105px;
position: absolute;
top: 0;
left: 0;
border-width: 0 50px 15px 50px;
border-style: solid;
border-color: transparent transparent #cdc0a8;
\t position:absolute;
\t top:0;
\t left:0;
}
.wrapleather .outside {
\t width:90px;
\t height:110px;
margin: 4px;
border-radius: 5px;
border: 1px dashed #aaa;
box-shadow: 0 0 0 1px #f5f5f5;
\t }
.wrapleather .inside {
width:90px;
height:110px;
border-radius: 5px;
}
<div class="wrapleather">
<div class="outside">
<div class="inside">
<p class="font">Leather</p>
</div>
</div>
</div>
此外陰影中的剩餘「正方形「格式,並沒有採取一切形式。爲了澄清我沒有要求任何人進行調試或類似的任何事情,我只是要求另外或進一步的方法來實現預期的結果,css仍然是我學習過程中的一部分,所以任何建議或任何如果您需要任何其他信息,請告訴我。謝謝!
這也可能是多個背景梯度。 – Ariel
你可以發佈HTML嗎? – zenkaty
@zenkaty html已啓動,相當簡單。 @阿里爾你能澄清一下嗎? – Nathan