首页 > 其他分享 >客服聊天页面,能仿写真是太好了

客服聊天页面,能仿写真是太好了

时间:2023-04-23 18:02:59浏览次数:33  
标签:flex 仿写 color 太好了 width background 0px border 页面

博客园真是个好地方,很多页面可以在上面仿写学习

下面是学习的一个客服聊天的页面,有点味儿了,看了代码感觉也不是很难

话不多说直接上代码,直接复制粘贴到vscode即可运行成功。

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>chatgpt</title>
    </head>
    <body>
        <style>
            .chatpdf {
                display: flex;
                height: 100vh;
                flex-direction: row;
            }

            .chatpdf .pannel {
                width: 255px;
                background-color: rgb(0,21,41);
            }

            .chatpdfBox {
                display: flex;
                flex-direction: column;
                flex: 1;
                background: linear-gradient(to bottom right,#dbe6fb,#f3f4f8);
                background-size: cover;
                background-attachment: fixed;
            }

            .chatpdfLine {
                flex: 1;
                width: 100%;
                max-width: 1000px;
                margin: 0 auto;
                overflow-y: auto;
            }

            .chatpdfRow {
                margin: 20px 10px;
                display: flex;
            }

            .chatpdfContent {
                display: inline-block;
                border-radius: 8px;
                padding: 6px 12px;
                max-width: 500px;
                background: rgba(255,255,255,0.6);
                font-size: 14px;
                box-shadow: 0px 0.3px 0.9px rgba(0,0,0,0.12),0px 1.6px 3.6px rgba(0,0,0,0.16);
            }

            .chatpdfArea {
                display: flex;
                padding: 5px 10px;
                max-width: 1000px;
                margin: 0 auto;
                width: 100%;
            }

            .chatpdfArea textarea {
                flex: 1;
                border-color: #d9d9d9;
                resize: none;
                outline: none;
                padding: 0px 5px;
                height: 35px;
                line-height: 30px;
                color: #404040;
                border-radius: 10px 0px 0px 10px;
                transition: all 0.3s,height 0s;
            }

            .chatpdfArea textarea:hover {
                border-color: #4096ff;
            }

            .chatpdfArea button {
                height: 35px;
                color: #fff;
                background: linear-gradient(90deg,#2870EA 10.79%,#1B4AEF 87.08%);
                box-shadow: 0 2px 0 rgba(5,145,255,0.1);
                border: none;
                padding:0 20px;
                border-radius: 0px 8px 8px 0px;
                cursor: pointer;
            }

            .chatpdfArea button:hover {
                background-color: #388aff;
            }

            .chatpdf .fileTitle {
                background-color: #1677ff;
                color: #fff;
                border-radius: 8px;
                padding: 10px;
                margin: 10px;
                font-size: 14px;
                cursor: pointer;
            }

            @media (max-width:768px) {
                .pannel {
                    display:none;
                }
            }
        </style>

    <div class="chatpdf">
            <div class="pannel">
                 <div class="fileList">
                    <div class="fileTitle">新浪网技术有限公司.docx</div>
                    <div class="fileTitle">新浪网技术有限公司.pdf</div>
                    <div class="fileTitle">新浪网技术有限公司.xlsx</div>
                </div>
            </div>
        

        <div class="chatpdfBox">
            <div class="chatpdfLine">
                <div class="chatpdfRow">
                    <div class="chatpdfContent">我是知识库机器人,一个专门响应人类指令的大模型</div>
                </div>
                <div class="chatpdfRow">
                    <div class="chatpdfContent">我服务于人类,致力于让生活更美好</div>
                </div>
                <div class="chatpdfRow">
                    <div class="chatpdfContent">我是知识库机器人,一个专门响应人类指令的大模型1</div>
                </div>
                <div class="chatpdfRow chatpdfAsk">
                    <div class="chatpdfContent">自建私有数据知识库,与知识库AI聊天</div>
                </div>
            </div>
            <div class="chatpdfArea">
                <textarea></textarea>
                <button>
                    <svg t="1682141916531" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1271" width="16" height="16"><path d="M0 1024l106.496-474.112 588.8-36.864-588.8-39.936L0 0l1024 512z" fill="#ffffff" p-id="1272"></path></svg>
                </button>
            </div>
        </div>
    </div>
    </body>
</html>

运行成功之后的页面如下图所示:

 完毕

标签:flex,仿写,color,太好了,width,background,0px,border,页面
From: https://www.cnblogs.com/Mickeybo101/p/17347298.html

相关文章

  • 如何使用 css 将页面缩小/缩放到 90%
    当我使用像笔记本电脑这样的设备时,它被放大了,当我缩小到90%时,它看起来好多了。我使用了缩放:90%;首先,但这不适用于Firefox或safari。通过一些研究,我发现transform:scale(0.9); 是要走的路。ZoomIE适用。但是,当我这样做时html或body{transform:scale(0.9); 它使网站......
  • java动态生成页面
    1.java中动态生成html具体适用哪些情况除了发布新闻那些的。答:数据量大,且增删改查频繁的。2.购物网站如果访问量不是很大。商品详细页面是否有必要也动态生成HTML?答:明显有必要,因为商品详细要经常修改,一般不改页面,改的是数据3.如果动态生成了HTML......
  • 为什么再html页面引用element复选框,只有名称值,没有复选框
    问题描述我引入了el-checkbox之后,发现浏览器页面只是显示里面的文字,并没有显示出来我想要看到的相应样式问题解决经过一定的百度查证可知,使用Element-UI组件时,我们需要用div标签将其包裹起来;然后使用script标签定义一下div里面的id属性,然后才能够引用到这个el-标签,让其中的样......
  • H5页面新增鼠标右击和长按触发事件
    H5页面新增鼠标右击和长按触发事件,不影响点击事件。示例如下:1.新增触发事件<van-cellclass="list-item"v-for="itemindataSource.list":key="item.id"@touchstart="longPress(item,index)"@touchend="removePress(item,index)"......
  • sdl2实现简单的登录页面
    #include<SDL.h>#include<SDL_ttf.h>#include<iostream>#include<string>intmain(intargc,char*args[]){  if(SDL_Init(SDL_INIT_VIDEO)<0)  {    std::cerr<<"SDL初始化失败,错误信息:"<<SDL_GetError()&l......
  • 微信小程序开发页面下拉刷新和scrollview
    问题背景本文主要介绍微信小程序开发过程实现页面下拉刷新以及scrollview组件实现下拉刷新,以及二者的关系。问题分析微信小程序开发过程,如果要实现页面刷新以及scrollerview下拉刷新,步骤如下:(1)页面独立配置在对应页面的json文件中配置属性:"enablePullDownRefresh":true(2)项目......
  • vue3 keep-alive实现tab页面缓存
    先上图 如何在我们切换tab标签的时候,缓存标签最后操作的内容,简单来说就是每个标签页中设置的比如搜索条件及结果、分页、新增、编辑等数据在切换回来的时候还能保持原样。看看keep-alive是如何实现该功能的。首先我们要了解keep-alive的基本使用。具体介绍请查看官方文档(htt......
  • Vue设置默认加载页面,去掉地址栏#号
     {path:'/',component:Login,//想默认启动的页面},mode:"history"//去掉地址栏的#号 ......
  • 常用代码-接口交互+构建页面
    点击#search,无参请求,构造表格代码:functiongetDataSet(){$("body").on("click","#search",function(){$.ajax({type:"get",url:"http://114.67.241.121:8080/product/list",......
  • 博客园页面展示--前端及样式代码
    这是一个博客园的首页面的展示前端代码和样式代码样式代码CSS采用外部链接,建好文件直接复制运行vscode即可,话不多说,直接上代码<!DOCTYPEhtml><html><head><metacharset="utf-8"><title>Mickey-博客园</title><linkrel="stylesheet&q......