[英]Costum text Telerik button
I have this Telerik Rad button 我有这个Telerik Rad按钮
<telerik:RadButton runat="server" Text="Overview 112" Width="110px" Skin="Default"></telerik:RadButton>
I would like to customize part of the text and I have no idea if it's possible. 我想自定义部分文字,我不知道是否有可能。 The end result should be "Overview" and the "112" highlight with some color.
最终结果应为“概述”,并以某种颜色突出显示“ 112”。
I came with this solution. 我提出了这个解决方案。 Please let me know if there is a better one
请让我知道是否有更好的一个
<telerik:RadButton runat="server" Text="Overview 112" Width="110px" Skin="Default">
<ContentTemplate>
<span>Overview</span>
<span style="color:red;">112</span>
</ContentTemplate>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.