使 PXButton 显示为铅笔图标 [英] Make PXButton appear as pencil icon

查看:19
本文介绍了使 PXButton 显示为铅笔图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I would like to place a button on my page that allows redirect to a custom processing page but the button must be the pencil icon such as when using AllowEdit="True" on a control.

我有以下 asp.net :

I have the following asp.net :

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

结果如下图左侧所示:

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

Unfortuantly the button appears a dark grey whereas I need it to mimic the UI of the pencil icon on the right hand side of the image provided.

如何实现这一目标?

推荐答案

试试下面的定义:

<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>

结果如下:

这篇关于使 PXButton 显示为铅笔图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆