[SEO优化] 网页设计核心内容对视觉表现的影响

[复制链接]
查看611 | 回复7 | 2019-2-13 03:48:44 | 显示全部楼层 |阅读模式

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

回复

使用道具 举报

yao不回忆 | 2021-2-21 10:15:31 | 显示全部楼层
5kym.cn这个站资源太全了
回复

使用道具 举报

乔峰之逆风痰 | 2021-7-3 03:34:59 | 显示全部楼层
祝愿悟空源码越办越好!
回复

使用道具 举报

话筒他常te | 2022-6-2 17:35:06 | 显示全部楼层
没积分哈,谁来帮帮我啊
回复

使用道具 举报

孙悟空748 | 2022-8-11 03:45:03 | 显示全部楼层
悟空源码资源不错。粉了
回复

使用道具 举报

luly靓 | 2022-12-1 21:00:49 | 显示全部楼层
6666悟空源码资源多!
回复

使用道具 举报

123457710 | 2024-2-4 22:31:19 | 显示全部楼层
资源太多了,准备办个会员
回复

使用道具 举报

DJ牧南 | 2024-3-21 03:33:39 | 显示全部楼层
我是来白嫖悟空源码的积分的!!!!!
回复

使用道具 举报

刘晨阳1 | 2024-3-21 17:13:31 | 显示全部楼层
找了很多地方都不能下载,终于在悟空源码找到了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则