tailwind模仿chatgpt自适应手机pc端对话聊天窗口布局代码
代码语言:html
所属分类:布局界面
代码描述:tailwind模仿chatgpt自适应手机pc端对话聊天窗口布局代码
代码标签: tailwind 模仿 chatgpt 自适应 手机 pc 对话 聊天 窗口 布局 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
<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"><img style="width:30px;" src='//repo.bfw.wiki/bfwrepo/icon/6408478cce30d.png' /></div>
</div>
<div class="p-3 prose prose-invert">
<p>你好,我是客服</p>
</div>
</div>
<div class="flex w-full">
<div class="w-16 flex-shrink-0 flex justify-center py-3">
<div class="h-8 w-8 rounded-full bg-gray-600 flex items-center justify-center"><img style="width.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0