网页设计核心内容对视觉表现的影响
三角形翻转的效果,大家想必见过,这里就把相关代码贴下,大家可以应用哦,当然翻转效果暂时不支持IE 6 7 8。
1、纯CSS做个三角
代码如下:
<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>
2.翻转:实现翻转
<!DOCTYPE html>
<html>
<head>
<style>
.jt b {
border-color: #FFD0C0 rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
border-style: solid dashed dashed;
border-width: 10px;
font-size: 0;
height: 0;
line-height: 0;
position: absolute;
left: 150px;
top: 14px;
width: 0;
}
.jt:hover b {
border-color: #ccc rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
transform: rotate(180deg);
transform-origin: 50% 30% 0;
transition: transform 0.2s ease-in 0s;
-moz-transform: rotate(180deg);
-moz-transform-origin: 50% 30% 0;
-moz-transition: transform 0.2s ease-in 0s;
}
</style>
</head>
<body>
<div class="jt">
<b>你好啊</b>
</div>
</body>
</html>
本文地址:http://www.baidu.com/
您可能感兴趣的文章
- 11-30亚洲午夜国产精品
- 11-30视频在线一区
- 11-30国产11页
- 11-30在线一区国产
- 11-30日韩高清在线二区
- 11-30欧美视频一区二区三区在线观看
- 11-30最新精品在线
- 11-30欧美日韩中文国产一区
- 11-30乱码精品一区二区三区
- 11-30欧美视频二区


阅读排行
- 1亚洲午夜国产精品
- 2视频在线一区
- 3国产11页
- 4在线一区国产
- 5日韩高清在线二区
- 6欧美视频一区二区三区在线观看
- 7最新精品在线
- 8欧美日韩中文国产一区
- 9乱码精品一区二区三区
- 10欧美视频二区
推荐教程
- 11-29国产欧美精品区一区二区三区
- 11-30精品免费看
- 11-29欧美国产日韩在线
- 11-30亚洲午夜国产精品
- 11-30乱码精品一区二区三区
- 11-30日韩高清在线二区
- 11-30一区国产视频
- 11-29国产精品日韩欧美一区二区三区
- 11-22Flash网站与html5网站区别
- 11-30亚洲第一网站免费视频


