网页设计核心内容对视觉表现的影响
三角形翻转的效果,大家想必见过,这里就把相关代码贴下,大家可以应用哦,当然翻转效果暂时不支持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/
栏 目:im资讯
下一篇:imtoken苹果手机怎么imToken官网下载下载?正版安装教程
本文标题:网页设计核心内容对视觉表现的影响
本文地址:https://daupon.cn//a/imzx3/17.html
您可能感兴趣的文章


阅读排行
推荐教程
- 08-01imtoken钱包im下载理财年化
- 08-01比特币后期im官网走势图最新
- 08-01TrustWallet钱imToken包被盗转款
- 07-19比特币钱包im官网对接java
- 06-05快捷币钱包imToken下载使用方法
- 05-03以太坊行情imToken钱包阐明2022
- 05-03比特币钱包im下载都有什么用
- 05-03苹果比特币im官网钱包有哪些
- 05-03怎么找比特imToken官网下载币钱包文件
- 04-23imtoken官网imToken钱包下载ios 安装




