原生js实现todolist待办事项卡片效果

代码语言:html

所属分类:布局界面

代码描述:原生js实现todolist待办事项卡片效果,采用css布局,原生js写法,无需其他的框架

代码标签: todolist 待办 事项 卡片 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/all.min.css">
    <style>
@import url("https://fonts.googleapis.com/css?family=Nunito:600,700&display=swap");
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
        }

        body {
            min-height: 450px;
            height: 100vh;
            margin: 0;
            background: radial-gradient(ellipse farthest-corner atcenter top, #f39264 0%, #f2606f 100%);
            color: #fff;
            font-family: 'Nunito', sans-serif;
        }

        button,
        input,
        select,
        textarea {
            font-family: inherit;
            font-size: inherit;
            line-height: inherit;
        }

        /*-------------------- ToDo List -------------------*/
        .todoList {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 320px;
            height: 500px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 7px 30px rgba(62, 9, 11, 0.3);
        }

        /** Header Image **/
        .cover-img .cover-inner {
            background: url("http://repo.bfw.wiki/bfwrepo/image/5d6539613d08b.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_600,h_400,/quality,q_90");
            height: 190px;
            background-size: cover;
            background-position: 10% 20%;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
         .........完整代码请登录后点击上方下载按钮下载查看

网友评论0