gpt4 book ai didi

javascript - Firefox 删除了我的 float :left

转载 作者:太空宇宙 更新时间:2023-11-03 21:52:00 25 4
gpt4 key购买 nike

在我的 Javascript 中,我有一些代码如下所示:

itemView.style.float = 'left';

在 chrome 中,float:left 很好:

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";

但是在 Firefox 中它丢失了

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";

最佳答案

应该是:

itemView.style.cssFloat="left"

还有一点about the cssFloat property .

关于javascript - Firefox 删除了我的 float :left,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16796805/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com