欢迎来到站长教程网!

HTML5

当前位置:主页 > 网页制作 > HTML5 >

网页设计核心内容对视觉表现的影响

时间:2017-11-22|栏目:HTML5|点击:

三角形翻转的效果,大家想必见过,这里就把相关代码贴下,大家可以应用哦,当然翻转效果暂时不支持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/

上一篇:Flash网站与html5网站区别

栏    目:HTML5

下一篇:没有了

本文标题:网页设计核心内容对视觉表现的影响

本文地址:http://www.cnshouchuang.com/wangyezhizuo/HTML5/17.html

您可能感兴趣的文章

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:888888 | 邮箱:888888#qq.com(#换成@)

澳门威尼斯人 版权所有 粤1234565789-1号