Sortable实现图文联系人卡片拖动排序效果代码

代码语言:html

所属分类:拖放

代码描述:Sortable实现图文联系人卡片拖动排序效果代码

代码标签: Sortable 图文 联系人 卡片 拖动 排序

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
  
  <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500&amp;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: 1rem;
    padding: 2rem;
    box-shadow: 4px 4px 16px #e1e1e1;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0