测试在博客中加入html的支持
for
(tmp
=
m_commentHead
;
tmp
;
tmp
=
tmp->next)
{
nCommentNum ++
;
memset(wBuffer,
0
,COMMENT_LEN)
;
MultiByteToWideChar(CP_UTF8,
0
,tmp->comment,-
1
,wBuffer,COMMENT_LEN)
;
if
(wcslen(wBuffer)
==
0
)
{
continue;
}
switch
(nCommentNum)
{
case
1
:
m_Comment1CEdit.SetWindowText(wBuffer)
;
break;
case
2
:
m_Comment2CEdit.SetWindowText(wBuffer)
;
break;
case
3
:
m_Comment3CEdit.SetWindowText(wBuffer)
;
break;
case
4
:
m_Comment4CEdit.SetWindowText(wBuffer)
;
break;
case
5
:
&nb
相关文档:
javascript 控制 html元素 显示/隐藏
1。编写js函数
<script type="text/javascript">
function display(y){$(y).style.display=($(y).style.display=="none")?"":"none";}
function $(s){return document.getElementById(s);}
</script>
2. 要显示/隐藏的html元素加上 id 属性
< ......
创新,云计算,web2.0,还极有可能web3.0、web4.0...请扪心自问,有创新吗?IT够混乱吗?也许有些人不承认,他们只会说那些是最先进的技术。真的如此?真实的情况是他们想搅乱这个世界,趁浑水摸鱼,也就是想乱世出英雄而已。
很多人应该知道,web应用的那 ......
getElementById getElementsByName getElementsByTagName 大概介绍
getElementById , getElementsByName ,getElementsByTagName
byid只是得到单个对象 后两个是得到集合,
getElementById 的用法
<a id="link1" name="link1" href=http://homepage.yesky.com> ......
常用颜色代码
#000000
#2F0000
#600030
#460046
#28004D
#272727
#4D0000
#820041
#5E005E
#3A006F
#3C3C3C
#600000
#9F0050
#750075
#4B0091
#4F4F4F
#750 ......