2012-05-21 135 views

回答

4

你可以這樣做:

CSS

.arrow{ 
    width:50px; 
    height:100px; 
    position:relative; 
    overflow:hidden; 
} 
.arrow:after{ 
    content:''; 
    width:100px; 
    height:100px; 
    -moz-transform:rotate(45deg); 
    -webkit-transform:rotate(45deg); 
    transform:rotate(45deg); 
    background:red; 
    position:absolute; 
    top:0; 
    right:-70px; 
    border-radius:10px; 
    -moz-border-radius:10px; 
} 

HTML

<div class="arrow"></div> 

入住這http://jsfiddle.net/dVbJr/4/

+0

謝謝桑迪普 – user1184100

+0

很高興幫助:) – sandeep

相關問題