[英]pin/unpin draggable div in scriptaculous
我正在购物车的CSS div上使用可拖动效果(prototype + script.aculo.us)。 我想在此div中插入一个链接,该链接允许用户在固定和绝对定位之间切换。 script.aculo.us是否有任何简单的方法? (到目前为止,我什么都没找到)
您要查找的内容实际上不是脚本语言的一部分,而是原型的一部分。 您要查找的代码将是以下代码之一:
$('element').relativize(); // to make the element relatively positioned
$('element').absolutize(); // to make the element absolutely positioned
$('element').setStyle({position:'fixed'}); // to make the element fixed
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.