WPF问题,Combox鼠标移上去背景颜色就会变成这样?怎么办呢?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WPF问题,Combox鼠标移上去背景颜色就会变成这样?怎么办呢?相关的知识,希望对你有一定的参考价值。
我看了控件模板了,不知道修改哪里?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
table
border-collapse:collapse;
td
border:#000 solid 1px;
</style>
</head>
<body>
<table width="600" border="1" cellspacing="0" cellpadding="0">
<tr>
<td onmouseover="this.style.background='#666666'" onmouseout="this.style.background=''"> </td>
<td onmouseover="this.style.background='#666666'" onmouseout="this.style.background=''"> </td>
</tr>
<tr>
<td onmouseover="this.style.background='#666666'" onmouseout="this.style.background=''"> </td>
<td onmouseover="this.style.background='#666666'" onmouseout="this.style.background=''"> </td>
</tr>
</table>
</body>
</html>本回答被提问者和网友采纳
css样式鼠标放上去变成手的形状
1、用css 添加手状样式,鼠标移上去变小手,变小手
cursor:pointer;
2、用JS使鼠标变小手onmouseover(鼠标越过的时候)
οnmοuseοver="this.style.cursor='hand'"
cursor其他取值
auto :标准光标
default :标准箭头
pointer, hand :手形光标
wait :等待光标
text :I形光标
vertical-text :水平I形光标
no-drop :不可拖动光标
not-allowed :无效光标
help :帮助光标
all-scroll :三角方向标
move :移动标
crosshair :十字标
e-resize
n-resize
nw-resize
w-resize
s-resize
se-resize
sw-resize
以上是关于WPF问题,Combox鼠标移上去背景颜色就会变成这样?怎么办呢?的主要内容,如果未能解决你的问题,请参考以下文章
a:hover属性,并且设置了他的背景图片及背景颜色,当鼠标移上去时显示正常,但奇怪的是当鼠标移开后,
Excel中 鼠标移动到那里会变颜色,不是鼠标点击一下才变的那种?