小编bal*_*nan的帖子

占位符未显示在jquery可排序,拖放中

我无法在div中显示可分类项目的占位符.

<script type="text/javascript">
$(function() {
$("#userContent").sortable({
        handle: '.close_button',
        connectWith: '#userContent',
        placeholder: 'placeholder',  
        forcePlaceholderSize: true,
        tolerance: 'pointer',
        revert: true,
    });
});
</script>
<style type="text/css">
.webtitle_paragraphs {
    width:98%;
    float:left;
    border:1px solid #0099CC;
    margin:5px;
}
.close_button {
    display:block;
    overflow:visible;
    visibility:visible;
    height:20px;
    background:#0099CC;
    width:100%;
}
.placeholder {
    background: #f0f0f0;
    border:1px dashed #ddd;
    visibility: visible !important;
}

.webtitle input {
    width:98%;
    font: bold 20px verdana;
    border:0px;
}
.paragraph_txt textarea {
    width:98%;
    height:auto;
    border:0px;
}
</style>

<div id="userContent">
  <div class="webtitle_paragraphs" id="div4463_text">
    <div class="close_button" id="close_4463"><a onclick="removeDiv('div4463_text');"><img src="images/close_button.png" …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-ui-sortable

2
推荐指数
1
解决办法
6741
查看次数

标签 统计

jquery ×1

jquery-ui-sortable ×1