我有以下代码:
$(".element").css("background-position","center");由于某些原因,它不会在CSS中创建一个名为background-position: center的新属性,而只是将其添加到后台属性中,如下所示:
background: center center rgb(251, 251, 251);如何使更改background-position在Javascript/jQuery中产生(就像在检查元素或纯css中那样)
background-position: center;https://stackoverflow.com/questions/60198306
复制相似问题