0

In my Javascript I have some code that looks like this :

itemView.style.float = 'left';

In chrome the float:left comes up fine:

style="float: left; cursor: pointer; color: rgb(102, 102, 102); font-size: 12px; line-height: 14px; text-decoration: none; width: 155px; height: 30px; padding-left: 24px; padding-top: 9px; margin-top: -4px; background-color: white; background-position: initial initial; background-repeat: initial initial";

However in Firefox it is missing

style="cursor: pointer; color: rgb(102, 102, 102); font-size: 12px; line-height: 14px; text-decoration: none; width: 155px; height: 30px; padding-left: 24px; padding-top: 9px; margin-top: -4px; background: none repeat scroll 0% 0% white";
4

1 回答 1

4

它应该是:

itemView.style.cssFloat="left"

这是关于 cssFloat 属性的更多信息。

于 2013-05-28T16:27:38.440 回答