您当前的位置: 首页 >  django

不会翻墙的泰隆

暂无认证

  • 1浏览

    0关注

    31博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

三)django实现查询,分页,批量删除

不会翻墙的泰隆 发布时间:2022-05-11 11:35:26 ,浏览量:1

前景回顾 从登录到加密,好像太基础了大家都会,看来是我多虑了。那接下来我们讲解本系列核心内容,不管什么类型网站,都要用到查询,所以写好一个查询页是多么重要!

泰隆从实践中得出为方便用户使用,该有的功能我们一样都不能少,不然后续头疼的还是自己。美观和实用我们都要,下面由我为大家详细说一说 在这里插入图片描述

1.前端(前端很废,一部分是借鉴)

1.1.1 select.html

DOCTYPE html>


    
    查询
    
    
    

    
    
    

    

    
    
    
        li{
            font-family: 楷体;
            font-weight: bold;
            font-size: large;
        }
        body{
        position:relative;min-height:100vh;padding-top:50px;background-color:#f7f7f7;background-image:url(https://assets.shimonote.com/static/lizard-service-form-sdk/assets/bg.8b0775af.png);background-position:bottom;background-repeat:no-repeat;background-size:100% auto;background-attachment:fixed;box-sizing:border-box;
        }
        #date {
          width: 1100px;
          height: 50px;
          border: 0px solid #FFF;
          margin-left: 650px;
          margin-top: 46px;
        }

        #startTime {
          float: left;
          margin-left: 0px;
         background: #FFFFFF;

        }

        #endTime {
          float: left;
          margin-left: 30px;
          background: #FFFFFF;
        }

        #TimeRight{
            float: right;
            background: #FFFFFF;
        width: 20px;
        height: 50px;
        }

        input[type="date"] {
          width: 158px;
          height: 50px;
          border: none;
          line-height: 1;
          appearance: none;
          -moz-appearance: none;
          -webkit-appearance: none;

          padding-left: 14px;
          font-size: 1rem;
          color: #525C66;
          outline: none;
          -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            padding-right:-00px;

        }

        input[type="date"]::-webkit-inner-spin-button {
          visibility: hidden;
        }
        input[type="date"]:after {}

        input[type="date"]::-webkit-calendar-picker-indicator {
          /*这是控制下拉小箭头的*/
          border: 0px solid #ccc;
          border-radius: 0px;
          /*  box-shadow: inset 0 1px #fff, 0 1px #eee; */
          color: #FFF;

          /* width: 0px;
          height: 0px; */
        }
        .Time {

          width: 80px;
          height: 50px;
          background: #FFFFFF;
          float: left;
        }
       	#TimeFont {
          font-size: 14px;
          color: #8F9DB3;
          float: left;
          margin-left: 20px;
          margin-top: 15px;
        }
        .btn{
            margin: 20px;
            margin-top: 10px;
            color: black;
        }
                table{
            width: 100%;
            border-collapse: collapse;
        }

        table caption{
            font-size: 2em;
            font-weight: bold;
            margin: 1em 0;
        }

        th,td{
            border: 1px solid #999;
            text-align: center;
            padding: 20px 0;
        }

        table thead tr{
            background-color: #54b8e0;
            color: #fff;
        }

        table tbody tr:nth-child(odd){
            background-color: #eee;
        }

        table tbody tr:hover{
            background-color: #ccc;
        }

        table tbody tr td:first-child{
            color: #f40;
        }

        table tfoot tr td{
            text-align: right;
            padding-right: 20px;
        }
        .pagination {
            margin-left: 500px;
        }

  


    
        
                
                
                    
                        开始时间
                        
                        
                    
                    
                        结束时间

                        
                        
                    
                    
                
                
        
 	          
            
            
                
                ID
                销售
                日期
                价格
                销量
                销售额
                
            
            
            
            {% for data in all_data %}
                
                	            
关注
打赏
1658128969
查看更多评论
0.0597s