在asp.net中的按钮文本字符上显示下划线 [英] Show underline on a character of button text in asp.net
本文介绍了在asp.net中的按钮文本字符上显示下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在页面顶部显示了一些按钮,例如选项卡,并且为它们添加了访问键(快捷键).现在我想在按钮文字上显示下划线,例如P o sition.
我不想使用图像.
请建议使用css,jquery或其他任何方式来代替背景图片.
提前感谢.
Hello all,
I am showing some buttons on the top of a page like tabs and i have added the access key (Shortcut keys) for them. Now i want to show the underline in button text on those characters like Position.
I don''t want to use the image.
Kindly suggest css,jquery or any other way instead of using background images.
Thanx in advance.
推荐答案
这是为您提供的解决方案- ^ ].
谢谢...
Here is the solution for you - Style a certain character in a string[^].
Thanks...
您可以尝试以下 ^ ]
You can try this Asp.net - underline for short cut key in the text of button[^]
< button type ="button"> P o osition</button>
样式类
<button type="button">Poosition</button>
style class
.u
{
text-decoration:underline;
}
这篇关于在asp.net中的按钮文本字符上显示下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文