工具条按钮移除灯光

发布于 2024-09-26 18:43:02 字数 70 浏览 1 评论 0原文

我的工具条中有一个工具条按钮,我希望在鼠标悬停时删除橙色灯光,因为我动态更改按钮的图片。

我该如何做到这一点?

I have a toolstripbutton into my toolstrip, and I wish remove the orange lighting when a mouse is hover, because I change the picture of the button dynamically..

How can I do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

苏佲洛 2024-10-03 18:43:02

你的英语非常糟糕,所以我会尽力解释。

我假设您希望在单击工具条按钮后更改其图像。
这很简单。
您所要做的就是为按钮创建一个 onClick 操作,然后通过 onClick 操作函数中的代码更改其图标/图像属性。

Your English is impeccably bad so ill try to interpret as best i can.

I'm assuming you wish to change the image of a toolstripbutton once it's been clicked.
This is quite simple.
All you have to do is create an onClick action for the button, then change its icon/image attribute through code within the onClick action function.

小矜持 2024-10-03 18:43:02
$(document).ready(function(){
    $('enter your element or class here').css("src", "path to image");
})

$(document).ready(function(){
    $('enter your element or class here').css("src", "path to image");
})

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文