久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如果它們都應(yīng)該是,為什么只有 4 個(gè)盒子中的

Why is only 1 of 4 boxes droppable, if they are all supposed to be?(如果它們都應(yīng)該是,為什么只有 4 個(gè)盒子中的 1 個(gè)可以丟棄?)
本文介紹了如果它們都應(yīng)該是,為什么只有 4 個(gè)盒子中的 1 個(gè)可以丟棄?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時(shí)送ChatGPT賬號(hào)..

在我的 沙盒網(wǎng)站,如果您加載它,幾秒鐘后會(huì)出現(xiàn)一個(gè)下拉菜單,并帶有確認(rèn)"按鈕.如果您單擊該確認(rèn)"按鈕,則背景圖像會(huì)更改并加載一些新框.新加載的頁面上的四個(gè)小框是可拖動(dòng)的,而白框內(nèi)的四個(gè)小框本應(yīng)是可拖放的,但只有一個(gè)是可拖放的.

At my sandbox site, if you load it a drop down menu appears after a few seconds with "confirm" button. If you click that "confirm" button, the background image changes and some new boxes load. The four small boxes on the newly loaded page are draggable, and the 4 boxes inside the white box are supposed to be droppable, but only one is.

新更新-這是整個(gè)代碼的工作小提琴.單擊小提琴上的提交".新框加載后,它們都是可拖放的.整個(gè)代碼的工作小提琴

New Update- Here is a working fiddle of the whole code. Click "submit" on the fiddle. After the new boxes load and they are all draggable and droppable. Working fiddle of whole code

但是,在我的沙盒網(wǎng)站上,實(shí)際上只有一個(gè)盒子(第 2 頁大白盒子中的紅色盒子)是可放置的.

However, on my sandbox site only one box (the red box in the big white box on page 2) is actually droppable.

重要提示 -- 如果我更改了紅色框上的 CSS 位置,由于某種原因它不再可放置.例如,我在紅色和淺綠色的盒子上交換了 left: 位置,它從紅色盒子中移除了可放置的功能,因此沒有一個(gè)盒子是可放置的.

IMPORTANT CLUE -- if I change the CSS position on the red box, it's no longer droppable for some reason. For example, I swapped the left: position on the red and lime green boxes, and it took away the droppable functionality from the red box so that none of the boxes were droppable.

另一個(gè)新的更新我在一個(gè)非 wordpress 網(wǎng)站上重現(xiàn)了這個(gè)問題,所以我們知道這不是 wordpress 問題或 wordpress 插件問題 非 wordpress 網(wǎng)站.除了在這個(gè)網(wǎng)站上,不是第二頁上的紅色框是可放置的,只有深藍(lán)色的框.

Another new update I recreated the problem on a non-wordpress site, so we know it's not a wordpress issue or wordpress plugin issue non-wordpress site. Except on this site, it's not the red box on the second page that's droppable, only the dark blue box.

另一個(gè)新的更新第一個(gè)回復(fù)這個(gè)帖子的人發(fā)現(xiàn),如果從 dom 中移除紅色盒子,淺藍(lán)色盒子就會(huì)變成 droppable...

Another new update The first person to respond to this thread has discovered that if the red box is removed from the dom, the light blue one becomes droppable...

知道如何解決這個(gè)問題嗎?另外,您能否告訴我如何將 console.log 添加到此代碼中,以便我可以嘗試更深入地挖掘.我從來沒有將控制臺(tái)日志附加到代碼中......

Any idea how to fix this? Also, can you show me how I would add console.log to this code so that I can try to dig deeper. I've never attached console log to code...

推薦答案

嘗試刪除每個(gè)可拖動(dòng)"元素上的 margin-left.問題就會(huì)消失.似乎 Jquery UI 中可能存在一個(gè)錯(cuò)誤,它將邊距視為元素的一部分.

Try removing margin-left on each of your "draggable" elements. The problem will go away. It appears that there might be a bug in Jquery UI that treats the margin as if it were part of the element.

要考慮移除的邊距,您可以調(diào)整已應(yīng)用于元素的左"值.

To account for the removed margin, you can adjust the "left" values you have already applied to the elements.

(它似乎是 這個(gè)錯(cuò)誤在這里工作.至少我會(huì)辯稱這是一個(gè)錯(cuò)誤,該票的作者也是如此;至少它是圖書館的行為方式不夠直觀,沒有處理有邊距的情況)

( it appears to be this bug at work here. At least I'd argue it's a bug and so would the author of that ticket; at minimum it's the library behaving in a less-than-intuitive way by not handling for the case with margins)

這篇關(guān)于如果它們都應(yīng)該是,為什么只有 4 個(gè)盒子中的 1 個(gè)可以丟棄?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How can I get my jasmine tests fixtures to load before the javascript considers the document to be quot;readyquot;?(在 javascript 認(rèn)為文檔“準(zhǔn)備好之前,如何讓我的 jasmine 測(cè)試裝置加載?) - IT屋-程序員軟件開發(fā)技術(shù)
backbone.js click event spy is not getting called using jasmine.js and sinon.js(沒有使用 jasmine.js 和 sinon.js 調(diào)用主干.js 點(diǎn)擊事件間諜)
Stub out a jQuery selector call?(存根一個(gè) jQuery 選擇器調(diào)用?)
jQuery trigger(#39;click#39;) not working with Jasmine-jquery(jQuery 觸發(fā)器(click)不適用于 Jasmine-jquery)
How to test the done and fail Deferred Object by using jasmine(如何使用 jasmine 測(cè)試完成和失敗的延遲對(duì)象)
CSS: Repeat Table Header after Page Break (Print View)(CSS:分頁后重復(fù)表頭(打印視圖))
主站蜘蛛池模板: 亚洲精品欧美 | 日韩在线观看网站 | 精品不卡 | 伊人色综合久久久天天蜜桃 | 亚洲视频免费观看 | 亚洲欧美视频一区二区 | 人人草人人干 | 日批免费在线观看 | 成人欧美一区二区三区黑人孕妇 | 免费啪啪 | 伊人中文字幕 | 羞羞视频网站免费看 | 国产激情一区二区三区 | 国产精品美女久久久久久免费 | 国产成人精品午夜视频免费 | 久久久久国产一区二区 | 视频在线一区二区 | av天空| 99久久亚洲 | 久久日本 | av手机在线看 | 久久久99精品免费观看 | 国产日韩欧美综合 | 91精品国产综合久久小仙女图片 | 最近日韩中文字幕 | 人人草人人干 | 成人在线日韩 | 久久综合一区 | www.日日操 | 成人国产精品一级毛片视频毛片 | 四虎影院新网址 | 在线免费国产 | 视频在线一区二区 | 91视频免费| 最新国产精品 | 精品91久久 | 欧美久久久网站 | 91热在线| 亚洲一区二区中文字幕 | 性高湖久久久久久久久 | 亚洲精品一区二区三区四区高清 |