如何在asp.net中获取特定标签的字体大小/字体系列 [英] How to take the Font size/Font family for a particular label in asp.net
本文介绍了如何在asp.net中获取特定标签的字体大小/字体系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想把特定标签的字体大小/字体系列用于检查条件,如何获取
解决方案
您需要做的就是访问字体属性服务器端如下:
FontUnit size = Label1.Font.Size;
字符串 [] fontNames = Label1.Font.Names;
使用javascript / jquery,你可以像下面这样继续
设置字体大小/家庭的方式
( #lblID)。css( font-size, 150px跨度>);
I want to take the font size/font family for a particular label for checking a condition,how to take that
解决方案
All you need to do is to access Font properties server side like below:
FontUnit size = Label1.Font.Size; String[] fontNames = Label1.Font.Names;
using javascript/jquery, you can proceed like below
Way to set font-size/family
("#lblID").css("font-size", "150px");
这篇关于如何在asp.net中获取特定标签的字体大小/字体系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文