我想改变字体设计这个结果值的某些部分 [英] I want to change font design some part of this result value

查看:50
本文介绍了我想改变字体设计这个结果值的某些部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,



我使用String Builder获取结果集。在这里,我想更改结果集的某些部分的设计。



这是代码。当我使用此代码时,它会更改结果集的所有字体。

Dear sir,

I am using String Builder for get a result set. Here I want to change the design some part of the result set.

Here is the code. When I use this code it changes all font of the result set.

sb.Append( "<i>"+"Heart Disease" +"<i />"+ " :  " + dr["heart_Disease2"] + "<br />");



我想要Hearts的Italic字体,但是它的所有线条都是斜体。



谢谢&问候Bigyan Sahoo


I want Italic font for Heart dieses but it makes all the line as italic.

Thanks & Regards Bigyan Sahoo

推荐答案

因为结束标记是错误的。请尝试以下代码。

Because the closing tag is wrong. Try the following code.
sb.Append( "<i>"+"Heart Disease" +"</i>"+ " :  " + dr["heart_Disease2"] + "<br />");


这是因为你的结束标签是错误的。请参阅 http://www.w3schools.com/html/html_intro.asp [ ^ ]。
That is because your closing tag is wrong. See http://www.w3schools.com/html/html_intro.asp[^].


这篇关于我想改变字体设计这个结果值的某些部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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