我们通过一个例子来试试,通过ui截图生成html代码,这个是ui截图
1、这个MiniCPM-V-2_6理解ui截图生成的代码:https://huggingface.co/spaces/openbmb/MiniCPM-V-2_6
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>通用后台管理系统</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .header { background-color: #007BFF; color: white; display: flex; justify-content: space-between; align-items: center; padding: 10px; } .logo { font-size: 24px; } .menu { list-style-type: none; margin: 0; padding: 0; display: flex; } .menu-item { margin-right: 20px; } .main { padding: 20px; } .section { margin-bottom: 20px; } .section-title { font-size: 18px; margin-bottom: 10px; } .section-content { display: flex; } .section-content .statistic { flex-basis: 30%; text-align: center; } .section-content .statistic h3 { margin-top: 0; } .section-content .statistic p { margin-top: 10px; } .section-content .chart { flex-basis: 70%; } .section-content .chart img { width: 100%; } .section-content .work-statistics { display: flex; justify-content: space-between; } .section-content .work-statistics .statistics { flex-basis: 30%; } .section-content .work-statistics .statistics h3 { margin-top: 0; } .section-content .work-statistics .statistics p { margin-top: 10px; } .section-content .work-statistics .chart { flex-basis: 70%; } .section-content .work-statistics .chart img { width: 100%; } .section-content .user-evaluation { display: flex; justify-content: space-between; } .section-content .user-evaluation .user-profile { flex-basis: 30%; } .section-content .user-evaluation .user-profile img { width: 50px; height: 50px; } .section-content .user-evaluation .user-profile .info { margin-left: 20px; } .section-content .user-evaluation .user-profile .info h3 { margin-top: 0; } .section-content .user-evaluation .user-profile .info p { margin-top: 10px; } .section-content .user-evaluation .user-evaluation-info { flex-basis: 70%; } .section-content .user-evaluation .user-evaluation-info h3 { margin-top: 0; } .section-content .user-evaluation .user-evaluation-info p { margin-top: 10px; } .footer { background-color: #f9f9f9; padding: 20px; text-align: center; } </style> </head> <body> <div class="header"> <div class="logo">通用后台管理系统</div> <div class="menu"> <a href="#">首页</a> <a href="#">医生中心</a> <a href="#">用户管理</a> <a href="#">评测管理</a> <a href="#">报告查询</a> <a href="#">预约管理</a> <a href="#">星表管理</a> <a href="#">船舱数据</a> <a href="#">预约排班</a> <a href="#">问卷管理</a> </div> </div> <div class="main"> <div class="section"> <div class="section-title">早安,韩修洁医生</div> <div class="section-content"> <p>主任医师 联系电话:0551-123456 xxx社区医院</p> </div> </div> <div class="section work-statistics"> <div class="section-title">工作统计</div> <div class="section-content"> <div class="statistics"> <h3>累计已审核数</h3> <p>4320人</p> </div> <div class="statistics"> <h3>本周审核数</h3> <p>342人</p> </div> <div class="chart"> <img src="chart.png" alt="工作统计图表"> </div> </div> </div> <div class="section user-evaluation"> <div class="section-title">测评用户</div> <div class="section-content"> <div class="user-profile"> <img src="profile.jpg" alt="张丽丽"> <h3>张丽丽</h3> <p>联系电话:18245625362</p> <p>身份证:34012519930620</p> </div> <div class="user-evaluation-info"> <h3>婚姻状况:已婚</h3> <p>安徽省合肥市高新区xxx小区18#101</p> </div> <div class="user-profile"> <img src="profile.jpg" alt="张丽丽"> <h3>张丽丽</h3> <p>联系电话:18245625362</p> <p>身份证:34012519930620</p> </div> <div class="user-evaluation-info"> <h3>婚姻状况:已婚</h3> <p>安徽省合肥市高新区xxx小区18#101</p> </div> <div class="user-profile"> <img src="profile.jpg" alt="张丽丽"> <h3>张丽丽</h3> <p>联系电话:18245625362</p> <p>身份证:34012519930620</p> </div> <div class="user-evaluation-info"> <h3>婚姻状况:已婚</h3> <p>安徽省合肥市高新区xxx小区18#101</p> </div> </div> </div> <div class="footer">更多</div> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body, html { margin: 0; padding: 0; font-family: Arial, sans-serif; } header { background-color: #007bff; color: white; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; } .header-right button { margin-left: 10px; padding: 5px 10px; background-color: #0056b3; color: white; border: none; cursor: pointer; } .main-content { display: flex; flex-direction: column; align-items: center; margin-top: 20px; } .profile-info { display: flex; align-items: center; width: 90%; background-color: #f4f4f4; padding: 20px; border-radius: 8px; margin-bottom: 20px; } .profile-photo img { width: 100px; height: 100px; border-radius: 50%; margin-right: 20px; } .user-details { flex-grow: 1; } .action-buttons button { margin-right: 10px; padding: 5px 15px; } .chart img { width: 100%; max-width: 600px; } .contact-list { width: 90%; background-color: #fff; padding: 20px; border-radius: 8px; } .contact-item { border-bottom: 1px solid #ccc; padding: 10px; } .contact-item:last-child { border-bottom: none; } </style> </head> <body> <header> <div class="logo">LOGO</div> <div class="header-right"> <button>消息</button> <button>设置中心</button> <button>用户管理</button> <button>统计分析</button> <button>考核评估</button> <button>知识库</button> <button>通讯录</button> </div> </header> <div class="main-content"> <div class="profile-info"> <div class="profile-photo"><img src="profile.jpg" alt="Profile Photo"></div> <div class="user-details"> <h2>用户名,您好</h2> <p>注册时间: 2018-03-11 | 电话: 0551-123456 | xxxxx区XX路123号</p> <p>跟进客户总数: 4320人</p> <p>本周跟进客户: 342人</p> </div> <div class="action-buttons"> <button>编辑</button> <button>新增</button> <button>删除</button> </div> </div> <div class="chart"> <!-- Placeholder for chart --> <img src="chart.png" alt="Sales Chart"> </div> <div class="contact-list"> <h3>通讯录</h3> <div class="contact-item"> <p>姓名: 李四</p> <p>电话: 18245625362</p> <p>邮箱: 34012519930620</p> </div> <!-- Repeat for other contacts --> </div> </div> </body> </html>
3、再看看claude3.5
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>通用后台管理系统</title> <style> body, html { margin: 0; padding: 0; font-family: Arial, sans-serif; } .header { background-color: #1E90FF; color: white; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; } .logo { font-weight: bold; } .nav { display: flex; gap: 20px; } .nav a { color: white; text-decoration: none; } .user-info { display: flex; align-items: center; gap: 10px; } .avatar { width: 40px; height: 40px; border-radius: 50%; } .main-content { padding: 20px; } .stats { display: flex; justify-content: space-between; margin-bottom: 20px; } .chart { width: 100%; height: 200px; background-color: #f0f0f0; } .user-list, .evaluation-list, .report-list { margin-top: 20px; } table { width: 100%; border-collapse: collapse; } th, td { border: 1px solid #ddd; padding: 8px; text-align: left; } .button { background-color: #4CAF50; color: white; padding: 5px 10px; border: none; cursor: pointer; } </style> </head> <body> <header class="header"> <div class="logo">通用后台管理系统</div> <nav class="nav"> <a href="#">首页</a> <a href="#">系统中心</a> <a href="#">用户管理</a> <a href="#">评价管理</a> <a href="#">报告管理</a> <a href="#">预约管理</a> <a href="#">患者管理</a> <a href="#">医生管理</a> <a href="#">预约审批</a> <a href="#">通知管理</a> </nav> <div class="user-info"> <img src="avatar.jpg" alt="用户头像" class="avatar"> <span>超级管理员</span> </div> </header> <main class="main-content"> <h2>欢迎使用通用后台管理系统</h2> <section class="user-info"> <img src="doctor-avatar.jpg" alt="医生头像" class="avatar"> <div> <h3>早安,韩修浩医生</h3> <p>主任医师 | 联系电话:0551-123456 | xxxx中心医院</p> </div> <div class="stats"> <div>接诊患者:56</div> <div>申请出诊:8/24</div> </div> </section> <section class="work-stats"> <h3>工作统计</h3> <div> <span>累计咨询患者:4320人</span> <span>实际咨询患者:342人</span> </div> <div class="chart"> <!-- 这里应该是一个实际的图表,为了简化,用一个占位符代替 --> [统计图表] </div> </section> <section class="user-list"> <h3>测评用户</h3> <table> <tr> <th>头像</th> <th>姓名</th> <th>联系电话</th> <th>身份证</th> <th>测评状态</th> <th>所属医院</th> <th>休养日期</th> <th>操作</th> </tr> <tr> <td><img src="user-avatar.jpg" alt="用户头像" class="avatar"></td> <td>张丽丽</td> <td>18245625362</td> <td>340125199306200</td> <td>已测</td> <td>xxxx社区医院</td> <td>2018-03-11</td> <td><button class="button">查看详情</button></td> </tr> <!-- 可以添加更多行 --> </table> </section> <section class="evaluation-list"> <h3>预约评测</h3> <table> <tr> <th>姓名</th> <th>用户</th> <th>预约类型</th> <th>操作</th> </tr> <tr> <td>汉密尔顿抑郁量表HAMD</td> <td>吴丽</td> <td>全评价</td> <td><span class="button">已确认</span></td> </tr> <!-- 可以添加更多行 --> </table> </section> <section class="report-list"> <h3>报告审核</h3> <table> <tr> <th>姓名</th> <th>用户</th> <th>报告审核</th> <th>操作</th> </tr> <tr> <td>汉密尔顿抑郁量表HAMD</td> <td>未完</td> <td>未入</td> <td><button class="button">录入</button></td> </tr> <!-- 可以添加更多行 --> </table> </section> </main> </body> </html>

你们自己评价吧。
网友回复