如何用jQuery替换CSS calc()?
expect(myStubFunction).toHaveBeenCalled()
答案 0 :(得分:0)
这可能会对您有所帮助:
<div class="lala">
sdasd
</div>
var posY=50;
$(document).ready(function(){
$(".lala").css('background-position-y',"50%").css('background-position-
y','+='+posY+'px')
});