2014-02-09 2 views

답변

0

http://jsfiddle.net/6JBef/

나는 HTML 구조, 어쩌면이 도움말을 만들었습니다.

HTML :

<div id="log2"> 
    <span class="arrow-up" style="" ></span> 
    <br/>How are u?<br/>Whats the matter? :D 
</div> 

가 CSS : 나는 아주 확실하지 않다

#log2 { 
    border: 1px solid #ccc; 
    border-radius: 3px; 
    width: 300px; 
    padding: 10px; 
    margin: 15px auto 0; 
    position: relative; 
    background: #fff; 
} 
#log2:after { 
    content: ""; 
    display: block; 
    position: absolute; 
    border-style: solid; 
    border-color: #ccc; 
    border-width: 1px 1px 0 0; 
    width: 15px; 
    height: 15px; 
    top: 19px; 
    right: -9px; 
    background: inherit; 

    -webkit-transform: rotate(45deg); 
    -moz-transform: rotate(45deg); 
    -o-transform: rotate(45deg); 
    transform: rotate(45deg); 
} 
0

, jsfiddle 참조 - 당신이 무엇을 요구 이것이다?

삼각형에 대해 두 개의 추가 div및 #arrow-inner을 만든 다음 화살표가 가운데에 있도록 vertical-align으로 텍스트를 정렬했습니다.

http://jsfiddle.net/LfErj/1/

관련 문제