【问题标题】:Jquery css transform scale centeredJquery css变换比例居中
【发布时间】:2016-06-18 11:53:10
【问题描述】:

大家好,我有这个代码:

(jQuery)

$("#chart1").css({transform:'scale(1,10)'})

使用这个 CSS 代码

#chart1{
    position:absolute; 
    bottom:0px;

    width:166px;
    height:10px;

    background-color:purple;
}

它实际上非常好用,但它从中间扩展了高度。 我希望它从底部扩展到顶部。

【问题讨论】:

    标签: jquery css transform scale


    【解决方案1】:

    我找到了答案,只需在 css 脚本中添加transform-origin:bottom;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-14
      • 2015-03-04
      • 2014-03-07
      相关资源
      最近更新 更多