最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What is the method to change the aspectRatio of JCrop? - Stack Overflow

programmeradmin6浏览0评论

How do I change the aspectRatio of the JCrop on the fly?

Sorry for the simple question but the all the manual, the documentation and the discussions are on which is dead from yesterday, and I really need to finish something in this evening.

If someone has by any chance the JCrop manual saved could you please upload?

How do I change the aspectRatio of the JCrop on the fly?

Sorry for the simple question but the all the manual, the documentation and the discussions are on http://deepliquid. which is dead from yesterday, and I really need to finish something in this evening.

If someone has by any chance the JCrop manual saved could you please upload?

Share Improve this question asked Mar 15, 2012 at 15:50 user1236048user1236048 5,6127 gold badges53 silver badges87 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

(A little late for @user1236048, but it may be helpful for others.)

The aspect ratio can be changed using the jCrop API using the setOptions method:

jcrop_api.setOptions(
{
    aspectRatio: 2/1
});
发布评论

评论列表(0)

  1. 暂无评论