简体   繁体   English

如何从可拖动元素中删除项目符号?

[英]How can i remove bullet from dragable element?

Remove listing bullets from the draggable element . 从可拖动元素中删除列表项目符号。 when the element is dragged it is dragging it with the bullet so how can i remove that bullet. 当元素被拖动时,它与项目符号一起拖动,因此我该如何删除项目符号。 here you can check my code - *http://jsfiddle.net/aNreg/197* i want to remove the bullet when i am dragging the element and also after dropping element. 在这里,您可以检查我的代码- *http://jsfiddle.net/aNreg/197*我要在拖动元素时以及删除元素后删除项目符号。

Add the rule 添加规则

li.ui-draggable-dragging {
    list-style:none;
}

Demo: Fiddle 演示: 小提琴

The problem is since the draggable item is cloned the existing rule is not applied to it 问题在于,由于可拖动项目已克隆,因此现有规则未应用于该项目

Your css is too restrictive. 您的CSS过于严格。 If you use 如果您使用

li.third

instead of 代替

.ui-widget-content ul li 

that will solve your problem 那会解决你的问题

Make the list style type none to your draggable element. 使列表样式对可拖动元素不输入任何内容。 like this 像这样

list-style:none;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM