2017-02-14 61 views
-6

我想在左側僅用粗輪廓(外側)和細輪廓(內側)製作雙邊框。我怎麼做到的?如何在左側僅用厚外側和細內側製作雙邊框

Double border Image

+2

對不起,你不能在MySQL中這樣做。 – shmosel

+0

謝謝我檢查了我的問題的其他重複,但它使邊界遍佈內容我只是想在我的內容的左側設置粗細線條邊框 – Kaveh

+0

@Kaveh您可以使用僞元素。 [小提琴](https://jsfiddle.net/f3peo5xd/) –

回答

0

我認爲這是你在找什麼..

.border1{ 
 
    width:100px; 
 
    height:100px; 
 
    border-left: 10px solid #ccc; 
 
    } 
 
.border2{ 
 
width: 100px; 
 
height: 100px; 
 
display: block; 
 
margin-left: 15px; 
 
border-left: 3px solid #ccc; 
 
    }
<div class="border1"> 
 
    <div class="border2"></div> 
 
</div>

檢查它,讓我知道,如果你想任何別的事情..

+0

非常感謝,我真的很感謝 – Kaveh

+0

很高興幫助... – Prateek