JSSOR禁用转换透视图

时间:2014-06-30 19:04:42

标签: css jssor

我的字幕质量很糟糕,文字非常模糊(就像你在图片上有文字然后让图片变大一样)。

我注意到如果我删除了css:

transform: perspective(2000px);

质量恢复正常。

为什么JSSOR会将此添加到我的所有字幕中,如何禁用它?

一个简单的解决方案(可能不是最漂亮的)是在我的外部样式表中将transform设置为none,然后将其设置为!important。它是唯一的吗?

3 个答案:

答案 0 :(得分:6)

请将$ HWA选项设为false。

是的,有没有我可以看到模糊文字的演示?

答案 1 :(得分:0)

  To avoid blurry text and remain slider responsive with jssor slider, 
  some   certain change is required in file name called 'jssor.utils.js'.

 In line 1045   transformValue += " perspective(2000px)"; 
  change to 
     transformValue += "none";

 And line 1092  elmt.style[GetTransformProperty(elmt)] = "perspective(2000px)"; 
 change to 
    elmt.style[GetTransformProperty(elmt)] = "none";

答案 2 :(得分:-1)

您可以尝试style="transform: none !important; -webkit-transform: none !important;" 写风格内部div。