关于.cs文件中的css样式 [英] regarding css style in .cs file

查看:219
本文介绍了关于.cs文件中的css样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我有一个chat.cs文件,我想在其中加粗用户名..我使用下面的代码,但它不起作用....



string myuser =+ User +:;



你可以帮我纠正代码,这样我才能粗体用户名

hello i have a chatting.cs file in which i want to bold the user name..i''m using below code but its not workin....

string myuser="" + User + ": ";

can you help me to correct the code so that i can bold the user name

推荐答案

这取决于您如何准确显示用户名。一般来说,这应该有效:

It depends how you display the username exactly. In general, this should work:
string myuser="<b>" + User + "</b>: ";





但是,如果字符串被发送到html编码的缓冲区,那么不行。如需进一步的帮助,您应该发布代码部分或详细的逻辑,说明您输出的确切方式。



But, if the string is sent to the buffer html encoded, than it won''t work. For further help, you should post the code portion or the detailed logic of how exactly you output this.


这篇关于关于.cs文件中的css样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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