欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

DIV+CSS實現(xiàn)帶三角箭頭的提示框

  發(fā)布時間:2016-09-20 15:43:54   作者:佚名   我要評論
本文給大家?guī)硪欢未a基于div+css實現(xiàn)三角形提示框,代碼簡單易懂,需要的朋友可以參考下

實現(xiàn)效果

實現(xiàn)代碼

CSS Code復(fù)制內(nèi)容到剪貼板
  1. <!DOCTYPE html>   
  2. <html>   
  3.   <head>   
  4.     <meta charset="UTF-8">   
  5.     <link rel="shortcut icon" href="resources/img/logo-color.png" type="image/x-icon">   
  6.     <title>測試</title>   
  7.     <style>   
  8.     .out-div {   
  9.         color#FFFFFF;   
  10.         font-size16px;   
  11.         line-height40px;   
  12.         displayinline-block;   
  13.         height40px;   
  14.         width200px;   
  15.         text-aligncenter;   
  16.         border-radius: 5px;   
  17.         margin-left32px;   
  18.         vertical-aligntop;   
  19.         background-colormaroon;   
  20.     }   
  21.     .arrow {   
  22.         width0px;   
  23.         height0px;   
  24.         border-top10px solid transparent;   
  25.         border-right10px solid;   
  26.         border-bottom10px solid transparent;   
  27.         positionabsolute;   
  28.         margin-left: -10px;   
  29.         margin-top10px;   
  30.         border-right-colormaroon;   
  31.     }   
  32.     </style>   
  33.   </head>   
  34.   <body>   
  35.     <div class="out-div">   
  36.         <div class="arrow" ></div>   
  37.         <span>這是一個提示框</span>   
  38.     </div>   
  39.   </body>   
  40. </html>  

以上所述是小編給大家介紹的DIV+CSS實現(xiàn)帶三角箭頭的提示框 ,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評論