• demo_34 评论内容实现_2 评论发布及发布组件初步实现


    本节目的:前端发布评论到数据库 及 创建评论组件

    效果图:

     1. 发布评论功能实现

     2. 评论模块

    2.1 评论模块内容

     2.2 评论模块样式

     2.3 评论组件comments-box

    内容

    样式

    <style lang="scss" scoped>
        .comments-box {
            margin: 15px 0;

            .comments-header {
                display: flex;

                .comments-header_logo {
                    flex-shrink: 0;
                     30px;
                    height: 30px;
                    border-radius: 5px;
                    overflow: hidden;

                    .comments-header_logo-img {
                         100%;
                        height: 100%;
                    }
                }

                .comments-header_info {
                    display: flex;
                    flex-direction: column;
                    padding-left: 15px;
                    font-size: 12px;
                    color: #999;
                    line-height: 1;

                    .title {
                        margin-bottom: 10px;
                        font-size: 14px;
                        color: #333;

                        .reply-text {
                            margin: 0 10px;
                            font-weight: bold;
                            color: #000;
                        }
                    }
                }
            }

            .comments-content {
                margin-top: 10px;
                font-size: 14px;
                color: #000;

                .comments-info {
                    margin-top: 15px;
                    display: flex;

                    .comments-button {
                        padding: 2px 10px;
                        font-size: 12px;
                        color: #999;
                        border-radius: 20px;
                        border: 1px #ccc solid;
                    }
                }

                .comments-reply {
                    display: flex;
                    margin: 15px 0;
                    padding: 0 10px;
                    border: 1px #eee solid;
                }

            }

        }
    </style>
  • 相关阅读:
    iptables之NAT端口转发设置
    Windows server 2008 R2远程桌面3389端口号修改
    Nginx启动错误:error while loading shared libraries: libpcre.so.1
    sp_change_users_login 'Update_One', '用户名', '登录名';
    Sqlserver 数据库定时自动备份
    ES DSL 基础查询语法学习笔记
    kafka命令使用
    kafka集群中常见错误的解决方法:kafka.common.KafkaException: Should not set log end offset on partition
    快速排序法(双冒泡排序法)
    运算符
  • 原文地址:https://www.cnblogs.com/luwei0915/p/13636847.html
Copyright © 2020-2023  润新知