Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从可拖动元素中删除列表项目符号。当元素被拖动时,它正在用子弹拖动它,所以我怎样才能删除那个子弹。在这里您可以检查我的代码 -*http://jsfiddle.net/aNreg/197* 我想在拖动元素时以及在放置元素后删除项目符号。
*http://jsfiddle.net/aNreg/197*
添加规则
li.ui-draggable-dragging { list-style:none; }
演示:小提琴
问题是由于克隆了可拖动项目,因此现有规则未应用于它
你的CSS太严格了。如果你使用
li.third
代替
.ui-widget-content ul li
这将解决你的问题
将列表样式类型设置为可拖动元素。像这样
list-style:none;