帆软如何用JS更改style样式

原网页样式:<div id="content-container" class="content-container" style="overflow: hidden; border-top: 0px; left: 0px; top: 0px; width: 1413px; height: 444px; position: absolute;">......

现在想要更改:style="overflow:none ;

即:<div id="content-container" class="content-container" style="overflow: none; border-top: 0px; left: 0px; top: 0px; width: 1413px; height: 444px; position: absolute;">......

FineReport 帆软用户D7xAiTcBvJ 发布于 2022-11-10 15:35
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
0
用户k6280494Lv6资深互助
发布于2022-11-10 15:40(编辑于 2022-11-10 15:44)

$("#content-container").css({'overflow': 'none'; 'border-top': '0px'; 'left': '0px'; 'top': '0px'; 'width': '1413px'; 'height': '444px'; 'position': 'absolute';})

最佳回答
0
congerLv6高级互助
发布于2022-11-10 15:41

$('.content-container').css('overflow','none')

  • 3关注人数
  • 235浏览人数
  • 最后回答于:2022-11-10 15:44
    请选择关闭问题的原因
    确定 取消
    返回顶部