採用css3的語言框效果

來源:互聯網
上載者:User

標籤:style   blog   color   os   width   for   

<!doctype html><html><head><title>採用css3的語言框效果</title><style>.wrap{position:relative;}.bd{    background:#BDCEEF;width:250px;height:80px;padding:10px;position:relative;z-index:2;    box-shadow: 5px 8px 11px rgba(0,0,0,0.4); /* 陰影 */    -webkit-box-shadow: 5px 8px 11px rgba(0,0,0,0.4);    -moz-box-shadow: 5px 8px 11px rgba(0,0,0,0.4);    /*filter: progid:DXImageTransform.Microsoft.Shadow(color=‘#666666‘, Direction=145, Strength=3)*/ /* ie的陰影濾鏡 */    border-radius: 5px;  /* 圓角 */    -webkit-border-radius: 5px;    -moz-border-radius: 5px;}.cor{    position:absolute;    z-index:2;    width:40px;    height:40px;    background:#BDCEEF;    left:30px;bottom:-20px;    transform: skewY(-45deg); /* 斜切實現尖角  */    -o-transform: skewY(-45deg);    -webkit-transform: skewY(-45deg);    -moz-transform: skewY(-45deg);}.cor_s{    z-index:1;    box-shadow: 5px 8px 11px rgba(0,0,0,0.4);  /* 尖角處的陰影 */    -webkit-box-shadow: 5px 8px 11px rgba(0,0,0,0.4);    -moz-box-shadow: 5px 8px 11px rgba(0,0,0,0.4);}</style><!--[if lte IE 8]><style type="text/css">/* 對ie實行人道處置 */.cor{    width:0;height:0;bottom:-30px;overflow:hidden;background:transparent;    border:20px solid transparent;    border-top-color:#BDCEEF;    border-left-color:#BDCEEF;}</style><![endif]--></head><body><div class=‘wrap‘>    <div class=‘bd‘></div>    <div class="cor"></div>    <div class="cor cor_s"></div></div></body></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.