如何在他们的点击事件中在asp.net中以编程方式更改字体syle [英] How to change a font syle progrmatically in asp.net at their click event

查看:59
本文介绍了如何在他们的点击事件中在asp.net中以编程方式更改字体syle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个asp.net项目。当我点击一个控件(如标签或按钮)时,我必须做的一件事是它的字体样式应该更改为font.strikeout。



先谢谢

Bigyan Sahoo

I have working on a asp.net project. One thing I have to do when I click on a control(Like a label or a button) its font style should be change to font.strikeout.

Thanks in Advance
Bigyan Sahoo

推荐答案

使用jquery更改控件中使用的css类,并定义字体。
You use jquery to change the css class used in your controls, and they define the fonts.


在代码隐藏中,你可以使用很多方法,比如属性属性 [ ^ ]或样式属性 [ ^ ]。看看 WebControl Properties [ ^ ]
In code-behind, you could use many ways like Attributes Property[^] or Style Property[^]. Take a look at WebControl Properties[^]


这篇关于如何在他们的点击事件中在asp.net中以编程方式更改字体syle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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