使 PXButton 显示为铅笔图标

2024-06-25

我想在我的页面上放置一个按钮,允许重定向到自定义处理页面,但该按钮必须是铅笔图标,例如在控件上使用AllowEdit =“True”时。

我有以下 asp.net :

<px:PXButton runat="server" ID="PXButton1" ImageKey="EditH" ImageSet="control" AlreadyLocalized="True"></px:PXButton>

结果如下图左侧所示:

不幸的是,该按钮显示为深灰色,而我需要它来模仿所提供图像右侧铅笔图标的 UI。

人们将如何实现这一目标呢?


尝试以下定义:

<px:PXButton runat="server" ID="PXbtnValidateAddresses" ImageKey="EditH" ImageSet="control" AlreadyLocalized="True" CommandName="ValidateAddresses" Style="min-width:20px; width:20px; border-style: none;padding-left:0px;padding-right:0px;height:20px;padding-top:0px;background-color:Transparent;"></px:PXButton>

This is the result: enter image description here

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

使 PXButton 显示为铅笔图标 的相关文章

随机推荐