在HTML控件innerText属性上连接一个空格 [英] concat a space on an HTML controls innerText property
本文介绍了在HTML控件innerText属性上连接一个空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在HTML Control的innerText属性中连接一个空格。这是一个
示例代码
Dim celCreate As New HtmlControls.HtmlTableCell()
celCreate.innerText = " TEST"
显示页面时,空格不存在!我该怎么办?
提前致谢
I want to concat a space in an HTML Control''s innerText property. here is a
sample code
Dim celCreate As New HtmlControls.HtmlTableCell()
celCreate.innerText = " TEST"
When the page is displayed the spaces are not there! What can I do?
Thanks in advance
推荐答案
尝试celCreate.innerText ="& & nbsp; TEST"
try celCreate.innerText = " TEST"
" =?Utf-8?B?QW5nZWw =?=" <安*** @ discussions.microsoft.com>写在
新闻:C5 ********************************** @ microsof t .com:
"=?Utf-8?B?QW5nZWw=?=" <An***@discussions.microsoft.com> wrote in
news:C5**********************************@microsof t.com:
我想在HTML Control的innerText属性中连接一个空格。这里是一个示例代码
Dim celCreate As New HtmlControls.HtmlTableCell()
celCreate.innerText =" TEST"
显示页面时,空格不存在!我该怎么办?
I want to concat a space in an HTML Control''s innerText property. here
is a sample code
Dim celCreate As New HtmlControls.HtmlTableCell()
celCreate.innerText = " TEST"
When the page is displayed the spaces are not there! What can I do?
HTML不允许有多个空格。
相反......替换(" ; TEST","","& nbsp;")
使用& nbsp;对于空间。
-
Lucas Tam(RE********@rogers.com)
请删除删除来自回复时的电子邮件地址。
Newmarket沃尔沃糟透了! http://newmarketvolvo.tripod.com
>
-
-Demetri
" Angel"写道:
--
-Demetri
"Angel" wrote:
我想在HTML Control的innerText属性中连接一个空格。这是一个
示例代码
Dim celCreate As New HtmlControls.HtmlTableCell()
celCreate.innerText =" TEST"
显示页面时,空格不存在!我该怎么办?
提前致谢
I want to concat a space in an HTML Control''s innerText property. here is a
sample code
Dim celCreate As New HtmlControls.HtmlTableCell()
celCreate.innerText = " TEST"
When the page is displayed the spaces are not there! What can I do?
Thanks in advance
这篇关于在HTML控件innerText属性上连接一个空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文