tailwind模仿chatgpt对话聊天窗口布局代码

代码语言:html

所属分类:布局界面

代码描述:tailwind模仿chatgpt对话聊天窗口布局代码

代码标签: tailwind 模仿 chatgp t对话 聊天 窗口 布局 代码

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

<html>

<head>
    <meta charset="utf-8">

    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/tailwind.2.2.7.css">
    <style>
        body{
            color: #d1d5db;
        }
        pre{
            background: rgba(0,0,0,.5);
            padding: 10px;
            margin: 10px 0;
        }
        #chatbody{
            height: 400px;
            overflow-y: scroll;
        }
    </style>
</head>

<body>
    <div >
       
        <div class="bg-gray-900 flex flex-col h-full">
            <main class="flex-grow-1 h-full">
               
               
                <div class="h-full w-full">
                    <div class="relative w-full h-full flex flex-col ">
                        <div class=" h-full" id="chatbody">
                           
                            <div class="flex w-full bg-gray-800">
                                <div class="w-16 flex-shrink-0 flex justify-center py-3">
                                    <div class="h-8 w-8 rounded-full bg-indigo-600 flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="h-6 w-6 text-white"><path stroke-linecap="round" stroke-linejoin="round" d="M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.3.........完整代码请登录后点击上方下载按钮下载查看

网友评论0