Sortable实现用户列表拖拽排序效果代码
代码语言:html
所属分类:拖放
代码描述:Sortable实现用户列表拖拽排序效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/boxicons.min.css"> <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500&display=swap'> <style> /*===== VARIABLES CSS =====*/ :root { /*===== Colors =====*/ --first-color: #272a3a; --first-color-light: #8a8eaa; --first-color-lighten: #f8f8fc; /*===== Font and typography =====*/ --body-font: "Ubuntu", sans-serif; --normal-font-size: 1rem; --smaller-font-size: 0.813rem; } /*===== BASE =====*/ *, ::before, ::after { box-sizing: border-box; } body { margin: 0; padding: 0; font-family: var(--body-font); background-color: var(--first-color-lighten); } h1 { margin: 0; } a { text-decoration: none; } img { max-width: 100%; height: auto; } /*===== DRAG and DROP =====*/ .drop, .drop_container { display: grid; } .drop { height: 100vh; align-items: center; justify-content: center; } .drop_container { row-gap: 1.........完整代码请登录后点击上方下载按钮下载查看
网友评论0