[英]How to resize every time for the same pixel value e.g.(“10px”) with jquery-ui?
I wonder if there is any way to resize a div
element for the same pixel value every time when i wanna resize the div
element eg("10px"). 我不知道是否有任何的方式来调整一个
div
每次元素相同的像素值,当我想调整div
元素,如(“10px的”)。 I'm trying to do it with jquery-ui, i can resize but i wanna resize it every time for some pixel value, and with the same value reduce it. 我正在尝试使用jquery-ui进行调整,但我可以调整大小,但每次都想为某个像素值调整大小,并使用相同的值减小它。
$(children[0]).resizable({
handles: "e, w"
});
I'm doing it with resizable . 我正在使用可调整大小的 。 Anyone know if there is a way to do it?
有人知道是否有办法吗?
Thanks. 谢谢。
I don't know if I got the question right, but I think you just need to use the grid
param as such: 我不知道我的问题是否对,但是我认为您只需要这样使用
grid
参数:
$( "#resizable" ).resizable({
grid: 10
});
You can find the documentation here 您可以在这里找到文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.