0

simplyScroll JS adds the inline CSS:

style="width:4400px;"

to the main tag used and identified in the jQuery call. It gets the 4400px by adding the width of all of the children

  • s within this .

    I would like to know where and what to add to the .js file to make it also add:

    max-width:4400px;
    

    so that it will look like:

    style="width:4400px;max-width:4400px;"
    

    You can view the .js file here:

    https://raw.github.com/logicbox/jquery-simplyscroll/master/jquery.simplyscroll.js

  • 4

    1 回答 1

    0

    我从来没有用过 simpleScroll 。但是你可以在第 145 行之后尝试

    this.$list.css(this.dimension,this.posMax+(this.itemMax*addItems) +'px');
    

    添加

    this.$list.css('max-width',this.posMax+(this.itemMax*addItems) +'px');
    
    于 2013-07-24T15:55:40.377 回答