📜  jquery 变换比例 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:11.807000             🧑  作者: Mango

代码示例1
I've actually tested below and seems to be working?

$('.sc-bar').css('transform','scaleY(0.5)');
Is the line enclose on $(document).ready() or made sure that jQuery is loaded before using this like below?

// A $( document ).ready() block.
$(document).ready(function() {
    // your code here...
    $('.sc-bar').css('transform','scaleY(0.5)');
});