国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開發(fā) > CSS > 正文

使用css畫三角形的方法代碼

2024-07-11 08:37:09
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

用純css畫個(gè)三角形以下是源代碼:

復(fù)制代碼代碼如下:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “<a href=”http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>”>
<html xmlns=”<a href=”http://www.w3.org/1999/xhtml”>http://www.w3.org/1999/xhtml</a>”>
<head>
<title>用純css畫個(gè)三角形</title>
</head>
<body>
<style type=”text/css”>
.rightdirection
{
width:0;height:0;
line-height:0;
border-width:20px;
border-style:solid;
border-color:transparent transparent transparent #A9DBF6;
}
.bottomdirection
{
width:0;height:0;
line-height:0;
border-width:20px;
border-style:solid;
border-color: #A9DBF6 transparent transparent transparent;
}
.leftdirection
{
width:0;height:0;
line-height:0;
border-width:20px;
border-style:solid;
border-color: transparent #A9DBF6 transparent transparent;
}
.topdirection
{
width:0;height:0;
line-height:0;
border-width:20px;
border-style:solid;
border-color: transparent transparent #A9DBF6 transparent;
}
</style>
<div class=”rightdirection”></div>
<p>
<div class=”bottomdirection”></div>
<p>
<div class=”leftdirection”></div>
<p>
<div class=”topdirection”></div>
</body>
</html>

畫個(gè)小三角形

復(fù)制代碼代碼如下:
<style>
#jb51_a{ border-top:10px solid #FFFFCC;
border-left:10px solid #FF3300;
border-bottom:10px solid #FFFFCC;}
</style>
<div id=”jb51_a”></div>

以下代碼兼容IE6:

復(fù)制代碼代碼如下:
<style>b.sanjiao{
display:inline-block;
width: 0;
height: 0;
border-width: 10px 10px;
border-style: dashed dashed solid dashed;
border-color: transparent transparent #ff0000;
font-size: 0;
line-height: 0;
-moz-transition: -moz-transform .2s ease-in;
-o-transition: -o-transform .2s ease-in;
transition: transform .2s ease-in;
vertical-align:text-top;
margin-left:5px
}</style>
<b class=”sanjiao”></b>

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 买车| 唐海县| 巴南区| 云林县| 普兰店市| 吴旗县| 福泉市| 垫江县| 吉安市| 玉溪市| 泰和县| 屏东县| 凤凰县| 新邵县| 西丰县| 昌都县| 长沙县| 贡嘎县| 建昌县| 新干县| 正阳县| 盐源县| 山丹县| 阿荣旗| 平舆县| 广德县| 赣榆县| 休宁县| 莱西市| 张家口市| 河津市| 贵南县| 西林县| 郓城县| 山东| 阜新市| 山东| 临洮县| 璧山县| 获嘉县| 余江县|