📄 css0507.htm
字号:
<html>
<head>
<title>洪恩在线 - CSS教程</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/pub/css/home.css">
<link rel="stylesheet" href="/pc/homepage/homepage.css">
<meta name="keywords" content="电脑乐园,电脑,乐园,交互教程,交互,教程,教育">
</head>
<body bgcolor="white" text="black" topmargin="10" leftmargin="0" marginwidth="0" marginheight="10">
<!--顶部开始-->
<script language="Javascript" src="/pub/js/head.js"></script>
<!--顶部结束-->
<table width="760" height="20" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td height=20 class="p1" bgcolor="#E8E8E8" align="left"><img src="/pc/img/blank.gif" width="12" height="8"><font color="#FF9966">当前位置</font>:<a href="/default.htm" class="under">洪恩在线</a>
-> <a href="/pc/index.htm" class="under">电脑乐园</a> -> CSS教程</td>
</tr>
</table>
<table width="760" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="15"></td>
</tr>
</table>
<table width="760" cellspacing="0" border=0 cellpadding="0" align="center">
<tr>
<td width="145" valign="top" bgcolor="#E8E8E8" align="left" style="color:blue" class="p1" height="123">
<br>
<table width="145" border="0" cellspacing="0" cellpadding="0" bordercolor="#F8AC0E" height="20">
<tr bgcolor="000099" valign="middle">
<td width="115" align="center" class="p2"><b><font color="#FFFFFF">CSS教程</font></b></td>
<td height="20" bgcolor="#E8E8E8" width="13"><img src="/pc/img/title_00.gif" width="13" height="20"></td>
<td height="20" bgcolor="#E8E8E8" width="17"> </td>
</tr>
</table>
<p class="p1" style="line-height:17pt" align="left"> <font color="#CC3399">→</font>
<a href="css0101.htm">CSS快速入门</a><br>
<font color="#CC3399">→</font> <a href="css0201.htm">怎样编写CSS</a><br>
<font color="#CC3399">→</font> <a href="css0301.htm">CSS属性</a><br>
<font color="#CC3399">→</font> <a href="css0401.htm">CSS定位</a><br>
<font color="#CC3399">→</font> CSS滤镜<br>
1.<a href="css0501.htm">概述</a><br>
2.<a href="css0502.htm">Alpha属性</a><br>
3.<a href="css0503.htm">Blur属性</a><br>
4.<a href="css0505.htm">Chroma属性</a><br>
5.<a href="css0506.htm">Dropshadow属性</a><br>
6.<a href=".">Fliph、Fliv属性</a><br>
7.<a href="css0508.htm">Gray属性</a><br>
8.<a href="css0309.htm">Glow属性</a><br>
9.<a href="css0510.htm">Invert属性</a><br><br>
</p>
<p align="center" class=p1><a href=/pc/bin/msg.pl?file_id=k_css target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="请您留言" border="0"><br> 谈谈您的看法</a>
<br>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_css.js>
</script>
<script language="javascript">
var num=0
if (!isNaN(speak_num)){
num=speak_num;
}
else{
num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("条发言")
</script>
</p>
<p class="p1" style="line-height:17pt" align="left"> </p>
</td>
<td width=1 bgcolor=#0586D7 height="123"><img src="/pc/img/blank.gif" width="1" height="1">
</td><td width=15 background="/pc/img/line.gif"><p> </p></td>
<td valign="top" background="/pc/img/line.gif" width="584" height="123" class="p2">
<p align="center"><b><span class="p3"><br>
<font color="#3366CC">五、CSS滤镜</font></span></b></p>
<p align="right" class="p1"> </p>
<hr color=blue size=1>
<p class="p2" style="line-height:17pt"> <b><font color="336633">6、FlipH、FlipV属性</font></b>
</p>
<p class="p2" style="line-height:17pt"> Flip是CSS滤镜的翻转属性,FlipH代表水平翻转,FlipV代表垂直翻转。它们的表达式很简单,分别是:
</p>
<p class="p2" style="line-height:17pt"> <font color="006666">Filter:FlipH</font>
</p>
<p class="p2" style="line-height:17pt"> <font color="006666">Filter:FlipV</font>
</p>
<p class="p2" style="line-height:17pt"> 我们先来看一幅图:点击可放大</p>
<p align="center"><a href="img/css036.jpg" target="_blank"><img src="img/css0361.gif" width="100" height="75" border="0" alt="原图"></a>
</p>
<p class="p2" style="line-height:17pt"> 下面我们分别对它实现水平翻转和垂直翻转,并且在图片上方的一段文字,也发生翻转。代码如下:</p>
<p class="p2" style="line-height:17pt"> <font color="006666"><html>
<br>
<head> <br>
<title>flip css</title> <br>
<style></font><font color="CC33CC">//*设置CSS样式开始*//</font> <br>
<font color="006666"><!-- <br>
div{position:absolute;top:20;width:300;<br>
filter:fliph(flipv);} </font><br>
<font color="CC33CC">//*定义DIV范围内的样式,绝对定位,翻转为水平翻转或垂直翻转。 <br>
注意:在这里fliph和flipv只取其中的一个*// </font><br>
<font color="006666">img{position:absolute;top:70;left:40;<br>
filter:fliph(flipv);} </font><br>
<font color="CC33CC">//*定义图片的样式,绝对定位,翻转属性和DIV一样。*// </font><br>
<font color="006666">--> <br>
</style> <br>
</head> <br>
<body> <br>
<div> <br>
<p style=“font-family:bailey;font-size:36pt;<br>
font-weight:bold; color:rgb(10,128,156);”> <br>
Leaf Village </p></font><br>
<font color="CC33CC">//*定义字体名称、大小、粗细、颜色*//</font> <br>
<font color="006666"></div> <br>
<p><img src=“ss05058.jpg”></p></font> <br>
<font color="CC33CC"> //*导入一张图片*//</font> <br>
<font color="006666"></body> <br>
</html></font></p>
<p class="p2" style="line-height:17pt"> 代码产生的两个效果分别如下图:(点击可以放大)</p>
<p align="center"><a href="img/css037.jpg" target="_blank"><img src="img/css0371.gif" width="100" height="77" border="0" alt="水平翻转"></a> <a href="img/css038.jpg" target="_blank"><img src="img/css0381.gif" width="100" height="75" border="0" alt="垂直翻转"></a></p>
<p class="p2" style="line-height:17pt"> <font color="#CC3399">水平翻转</font> <font color="#CC3399">垂直翻转</font></p>
<p class="p2" style="line-height:17pt"> 翻转的属性应用是不是很简单。下一节我将向您介绍Glow属性。</p>
<hr color=blue size=1>
<p class="p1" align="right"><a href="css0506.htm">上一节</a> <a href="css0508.htm">下一节</a> </p>
<p> </p>
<p align="center" class=p2><a href=/pc/bin/msg.pl?file_id=k_css target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="请您留言" border="0"><br> 谈谈您的看法</a>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_css.js>
</script>
<script language="javascript">
var num=0
if (!isNaN(speak_num)){
num=speak_num;
}
else{
num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("条发言")
</script>
</p>
<p> </p>
</td><td width=15 background="/pc/img/line.gif"><p> </p></td>
</tr>
</table>
<!--底部开始-->
<script language="Javascript" src="/pub/js/foot.js"></script>
<!--底部结束-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -