|
主题: 鼠标经过事件的问题!
|
skipchina
职务:普通成员
等级:1
金币:0.0
发贴:1
|
#12006/3/20 21:30:44
图片如下: 怎么才能使鼠标经过文字时变色!谢谢!
|
不是高手
职务:普通成员
等级:3
金币:5.0
发贴:1352
|
#22006/3/22 10:57:13
去学CSS,HOVER伪类
|
【志奇林峰】
职务:普通成员
等级:1
金币:0.1
发贴:99
|
#32006/3/23 10:30:10
是使用 CSS 样式来实现的; 代码如下: <style type="text/css"> <!-- a:link { font-family: "Arial Narrow"; font-size: 12px; color: #000000; text-decoration: none; } a:visited { font-family: "Arial Narrow"; font-size: 12px; color: #000000; text-decoration: none; } a:hover { font-family: "Arial Narrow"; font-size: 12px; color: #FF0000; text-decoration: underline; position: relative; left: 1px; top: 1px; } a:active { font-family: "Arial Narrow"; font-size: 12px; color: #0000FF; } --> </style> 放到<head></head>中间就可以了!
|
红叶舞香山
职务:普通成员
等级:1
金币:1.1
发贴:269
|
#42006/3/26 23:59:23
<style type="text/css">
<!--
a:link {
font-family: "Arial Narrow";
font-size: 12px;
color: #000000;
text-decoration: none;
}
a:visited {
font-family: "Arial Narrow";
font-size: 12px;
color: #000000;
text-decoration: none;
}
a:hover {
font-family: "Arial Narrow";
font-size: 12px;
color: #FF0000;
text-decoration: underline;
position: relative;
left: 1px;
top: 1px;
}
a:active {
font-family: "Arial Narrow";
font-size: 12px;
color: #0000FF;
}
-->
</style>
|