氣泡框箭頭製作

來源:互聯網
上載者:User

標籤:

 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4     <meta charset="UTF-8"> 5     <title>Document</title> 6     <style> 7     *{margin:0;padding:0;} 8     .arrow_box{ 9         position:relative;10         background: #88b7d5;11         border:4px solid #c2e1f5;12     }13     .arrow_box{14         padding:40px;15         width:280px;16         height:100px;17         border-radius: 6px;18         margin:50px auto;19     }20 21     .arrow_box:before,.arrow_box:after{22         position:absolute;23         bottom: 100%;/*此時的箭頭位置在最上面  top:100%;此時的箭頭位置在最下面*/24         left: 50%;25         border: solid transparent;26         content: " ";27          height: 0; 28         width: 0; 29         pointer-events: none;30     }31     .arrow_box:before{32         border-color: rgba(194, 225, 245, 0);33         border-bottom-color: #c2e1f5;/*箭頭指向上;要想箭頭朝下用 border-top-color:#c2e1f5;*/34         border-width:36px;35         margin-left:-36px;36     }37     .arrow_box:after{38         border-color: rgba(136, 183, 213, 0);39         border-bottom-color: #88b7d5;
/*箭頭指向上;要想箭頭朝下用 border-top-color:#c2e1f5;*/
 40  border-width:30px; 41  margin-left:-30px; 42 } 43 </style> 44 </head> 45 <body> 46 <div class="arrow_box"> 47 <h1 class="logo">css arrow please!</h1> 48 </div> 49 </body> 50 </html>

氣泡框箭頭製作

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.