jquery slider with variable width elements

后端 未结 2 1259
情歌与酒
情歌与酒 2021-01-24 14:50

is it possible to create a jquery slider in which the elements have variable width (i.e. not all elements have the same width) ?

If so, how do I do that ? Hannit

2条回答
  •  我在风中等你
    2021-01-24 15:41

    To set the width of a jQuery slider just wrap it in a div and style using CSS. You can also reference the child elements through CSS to style those as well, but that has to be done using jQuery after they have been rendered.

    Example:

    
    
    
    

    I hope that answers your question, good luck!

提交回复
热议问题