开发者

jQuery UI's Sortable - how do I style my 'li.ui-state-highlight' ?, always comes up white bg color

        $("#sortable").sortable({
      开发者_开发知识库      placeholder: '.ui-state-highlight'
        });

Above that I have in my stylesheet, .ui-state-highlight { background-color: #F6F698; height: 1.5em; line-height: 1.2em; border: dashed 1px gray; }, and whenever I drag an li, the placeholder has just a black border, looks exactly like the normal li's, #sortable li { overflow: auto; margin: 0 0 5px 0; padding: 5px; border: solid 1px black; }. Am I doing something wrong? Or missing anything?? Thanks! When I drag an li, I notice a shows up, and maybe it's a problem that there's no inner html in that li? It's closed off immediately (" />" at the end), so maybe it needs an   in there?


Don't use:

placeholder: '.ui-state-highlight'

But use:

placeholder: 'ui-state-highlight'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜