📄 css0310.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> CSS属性<br>
1.<a href="css0301.htm">字体属性</a><br>
2.<a href="css0302.htm">颜色和背景属性</a><br>
3.<a href="css0303.htm">文本属性</a><br>
4.<a href="css0305.htm">“容器”属性</a><br>
5.<a href="css0309.htm">分级属性</a><br>
6.鼠标属性<br>
<font color="#CC3399">→</font> <a href="css0401.htm">CSS定位</a><br>
<font color="#CC3399">→</font> <a href="css0501.htm">CSS滤镜</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"> <font color="#336633"><b>6、鼠标属性</b></font>
</p>
<p class="p2" style="line-height:17pt"> 我们知道,当把鼠标移动到不同的地方时,当鼠标需要执行不同的功能时,当系统处于不同的状态时,都会使鼠标的形状发生改变。<br>
用CSS来改变鼠标的属性,就是当鼠标移动到不同的元素对象上面时,让鼠标以不同的形状、图案显示。 <br>
在CSS当中,这种样式是通过“cursor”属性来实现的。Cursor属性有很多的属性值,我们来看一下它的详细列表:</p>
<p align="center"><img src="img/css064.gif" width="288" height="368" border="0" alt="鼠标属性"></p>
<p class="p2" style="line-height:17pt"> 我们来看一个例子吧,请看下面这段代码:</p>
<p class="p2" style="line-height:17pt"> <font color="#006666"><html><br>
<head> <br>
<title>changemouse</title> <br>
</head> <br>
<body> <br>
<h1 style=“font-family:文鼎新艺体简”>鼠标效果</h1><font color="#CC33CC">//*设置字体*//</font><br>
<p style=“font-family:行书体;font-size:16pt;color:red”> <br>
请把鼠标移到相应的位置观看效果。</p><font color="#CC33CC">//*设置字体的名称、大小、颜色*//</font>
<br>
<div style=“font-family:行书体;font-size:24pt;color:green;”><br>
<font color="#CC33CC">//*设置该区域内的字体名称、大小、绿色*//</font><br>
<p><span style=“cursor:hand”>手的形状</span><br>
<br>
<font color="#CC33CC">//*设置鼠标属性为手的形状*//</font><br>
<span style=“cursor:move”>移动</span><br><font color="#CC33CC">//*设置鼠标属性为移动*//</font>
<br>
<span style=“cursor:ne-resize”>反方向</span><br><br>
<font color="#CC33CC">//*设置鼠标属性为反方向*//</font> <br>
<span style=“cursor:wait”>等待</span><br><font color="#CC33CC">//*设置鼠标属性为等待*//</font><br>
<span style=“cursor:help”>求助</span><font color="#CC33CC">//*设置鼠标属性为求助*//</font>
<br>
</p> <br>
</div> <br>
</body><br>
</html></font></p>
<p class="p2" style="line-height:17pt"> 上述代码产生的效果请您<em class="p3"><a href="sl/changemouse.htm" target="_blank">点击这里</a></em></p>
<p class="p2" style="line-height:17pt"> CSS的属性就讲到这里,我们看到它的属性还是比较多的,但是您只要搞清楚它们都是什么意思,应用起来就会很方便。在您应用的时候,还可以参照我为您提供的<em class="p3"><a href="sxliebiao.htm" target="_blank">属性详细列表</a> </em>
。<br>
下一章将向您介绍CSS定位。 </p>
<hr color=blue size=1>
<p class="p1" align="right"><a href="css0309.htm">上一节</a> <a href="css0401.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 + -