ITPUB论坛 » WEB 2.0技术 » 怎样为前台脚本中为 GridView 列 添加下面的样式?


2008-5-4 11:00 mosticy
怎样为前台脚本中为 GridView 列 添加下面的样式?

怎样为前台脚本中为 GridView 列 添加下面的样式?
.csslist
{
        display:block;
        white-space:nowrap;
        overflow:hidden;
        word-wrap:break-word;
        float:left;   
}

2008-5-4 17:27 mosticy
在网上查找到的。


答案如下:
obj.style.display = "block";
obj.style.whiteSpace = "nowrap";
obj.style.wordWrap = "break-word";
obj.style.floatStyle = "left";

2008-5-4 23:19 justforregister
nice job

2008-5-5 08:54 mosticy
[quote]原帖由 [i]justforregister[/i] 于 2008-5-4 23:19 发表 [url=http://www.itpub.net/redirect.php?goto=findpost&pid=10274443&ptid=981603][img]http://www.itpub.net/images/common/back.gif[/img][/url]
nice job [/quote]
;)

页: [1]


Powered by ITPUB论坛