0514-86177077
9:00-17:00(工作日)
先來看一下效果,這在CSS3之前,完全是不可想象的,只有圖片才能做的到,但在HTML5和CSS3大行其道的今天,實現這種效果,那都不是事啊。
看一下實現的代碼:
!DOCTYPE html> html> head> style type='text/css'> /* 上三角 */ .arrow-up { width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 20px solid green; } /* 下三角 */ .arrow-down { width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 20px solid orange; } /* 右三角 */ .arrow-right { width: 0; height: 0; border-top: 60px solid transparent; border-bottom: 60px solid transparent; border-left: 60px solid blue; } /* 左三角 */ .arrow-left { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-right: 10px solid silver; } /style> /head> body> div class="arrow-up">/div> div class="arrow-down">/div> div class="arrow-left">/div> div class="arrow-right">/div> /body> /html>
標簽:滄州 混顯 鶴壁 萊蕪 邵陽 賀州 貴州 廣安
上一篇:如何使用CSS3畫出一個叮當貓
下一篇:手機屏幕尺寸測試——手機的實際顯示頁面的寬度
Copyright ? 1999-2012 誠信 合法 規范的巨人網絡通訊始建于2005年
蘇ICP備15040257號-8