2012-05-21 3 views

답변

7

예, CSS 만 사용하면되지만 쉽지는 않지만 결과는 ... 잘 못 생깁니다. 당신은뿐만 아니라이를 확인 할 수 있습니다 : CSS for inverted curved tabs

편집는 :

h1 { 
    min-width: 150px; 
    height: 30px; 
    margin: 0; 
    /**border: solid 2px #979797;/**/ 
    border-bottom: none; 
    border-radius: 8px 0 0 0; 
    box-shadow: -2px -2px 2px #a5a5b1; 
    display: inline-block; 
    position: relative; 
    background: linear-gradient(#e8e8ea, #f8f8fa); 
} 
h1:before { 
    /**top: -2px;/**/ 
    /**/top: 0;/**/ 
    right: -23px; 
    width: 30px; 
    height: 30px; 
    border-radius: 0 8px 0 0; 
    /**border: solid 2px #979797;/**/ 
    border-left: none; 
    border-bottom: none; 
    box-shadow: 2px -2px 2px #a5a5b1; 
    /** outline: solid 1px red; /* uncomment this to check position */ 
    transform: skewX(30deg); 
    position: absolute; 
    background: linear-gradient(#e8e8ea, #f8f8fa); 
    content: ''; 
} 
h1:after { 
    right: -44px; 
    /**bottom: 0;/**/ 
    /**/bottom: 2px;/**/ 
    width: 16px; 
    height: 8px; 
    /**border: solid 2px #979797;/**/ 
    border-top: none; 
    border-right: none; 
    border-radius: 0 0 0 8px; 
    box-shadow: inset 2px -2px 2px #a5a5b1, -4px 4px 2px #f8f8fa; 
    /** outline: solid 1px red; /* uncomment this to check position */ 
    transform: skewX(30deg); 
    position: absolute; 
    content: ''; 
} 
div { 
    min-height: 130px; 
    margin-top: -7px; 
    /**border: solid 2px #979797;/**/ 
    border-radius: 0 8px 0 0; 
    box-shadow: -2px -2px 2px #a5a5b1, 2px -2px 2px #a5a5b1; 
    background: linear-gradient(#f8f8fa, #f6f6f8); 
} 

그것은 할 수있다 : 오늘은 더 나은 아이디어를 가지고, 다음과 같이 http://dabblet.com/gist/2762234

CSS의이 확인 좀 더 예쁘게 보일 수는 있지만 표제의 고정 너비와 div의 의사 요소가 필요합니다.

+0

굉장 :) 고마워! – F0RR

0

두 개의 요소를 서로 겹쳐서 사용하면됩니다.
나는 그것이 제작을 위해 당신이 원하는 것이라고 생각하지 않는다. 그래서 나의 충고는 배경 이미지로가는 것이 될 것이다.

관련 문제