Possible to style the css3 resize function?

后端 未结 3 927
执笔经年
执笔经年 2020-11-30 08:51

I was wondering; is it possible to style the css3 resize property?

div
{
resize:both;
overflow:auto;
}

I want a horizontal resize

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 09:48

    I would like to propose my solution

    https://jsfiddle.net/tomoje/x96rL2sv/26/

    It works on every browser, type of device, can be operated with mouse and finger (touch) and doesn't use any image etc.

    The trick is to give to user a handle and to expand the handle to whole working area, to avoid mouse/touch to step out from the handle area during moving (it can happen when the javascript function will slow down due to some computer occupation or else)

提交回复
热议问题