html5写一个简单的手机app的设置界面

 

 

<!DOCTYPE html>

<html lang="zh">

<head>

<meta charset="UTF-8" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<meta http-equiv="X-UA-Compatible" content="ie=edge" />

<title>Document</title>

<style>

html{

font-size:100px;

}

body{

background: rgb(239,239,239);

}

body,a,h3,span{

padding:0;

margin:0;

text-decoration: none;

}

.header{

background: #26A69A ;

height: 0.44rem;

font-size:0.14rem;

color: white;

padding-left:0.17rem;

padding-right: 0.25rem;

text-align: center;

line-height: 0.44rem;


}

.header>a{

color: white;

float: left;

}

    .header>.btn{

    float: right;

    padding-top:0.1rem;

    }

.btn>span{

border-radius: 100%;

display: block;

width: 0.04rem;

height: 0.04rem;

background: white;

margin-top: 0.03rem;

}

.username{

height: 0.72rem;

background: white;

border-bottom: 1px solid #E0E0E0 ;

padding-left: 0.17rem;

padding-right: 0.12rem;

padding-top: .12rem;

}

.username>img{

width: 0.48rem;

height: 0.48rem;

object-fit: cover;

margin-right: 0.12rem;

float: left;

border-radius: 0.1rem;

}

.username>.text{

height: 0.48rem;

float: left;


}

.username .name{

font-size: 0.15rem;

margin-bottom: 0.08rem;


}


.username .haha{

font-size: 0.12rem;

color: #5D5D5D;

}

.right{

font-size:0.12rem;

float: right;

margin-top: 0.12rem;



}

.right>a{

font-size: 0.12rem;

}

.right>.img,.right>.back{

display: inline-block;

vertical-align: middle;

}

.address,.safe,.shezhi,.secrt,.view,.other{

font-size: 0.14rem;

padding-left: 0.17rem;

border-bottom: 1px solid #E0E0E0 ;

height: 0.65rem;

line-height: 0.65rem;

padding-right: 0.12rem;

background: white;

}

.safe{

margin-top:0.13rem;

margin-bottom: 0.13rem;

}

.view{

margin-bottom: 0.13rem;

}

.address>a,.safe>a,.shezhi>a,.secrt>a,.view>a,.other>a{

float: right;

}

.footer{

margin-top: 0.2rem;

height: 0.5rem;

font-size: 0.16rem;

border:1px solid red;

border-radius: 0.05rem;

width: 2.99rem;

text-align: center;

line-height: 0.5rem;

margin-left: 0.35rem;

}



</style>


</head>

<body>

<div class="header">

<a href=""> < </a>

设置

<div class="btn">

<span></span>

<span></span>

<span></span>

</div>

</div>

<div class="content">

<div class="username">


<img src="./timg.jpeg" alt="" />

<div class="text">

<div class="name">你好你好</div>

<div class="haha">会员名:哈哈哈哈</div>

</div>

<div class="right">

<div class="img"><img src="./ewm.jpeg" alt="" /></div>

<div class="back"><a href=""> > </a></div>

</div>


</div>

</div>

<div class="address">

我的收获地址

<a href=""> > </a>

</div>

<div class="safe">

账户与安全

<a href=""> > </a>

</div>

<div class="shezhi">

地区设置

<a href=""> > </a>

</div>

<div class="secrt">

隐私

<a href=""> > </a>

</div>

<div class="view">

通知

<a href=""> > </a>

</div>


<div class="other">

关于平台

<a href=""> > </a>

</div>

<div class="footer">

退出当前账号

</div>




</body>

</html>

整理了一些书籍分享给大家,可关注公众号菜单栏点击推荐书籍获取链接

JavaScript高级程序设计(红宝书)     你不知道的JavaScript(上卷)  你不知道的JavaScript(中卷)  你不知道的JavaScript(下卷).pdf

js权威指南.pdf    深入理解ES6.pdf    es6标准入门(第三版).pdf    HTML与CSS入门经典   Javascript高级程序设计

JavaScript设计模式    性能网站建设进阶指南   精通正则表达式   HTML5程序设计  CSS权威指南  JavaScript权威指南

JavaScript面向对象编程指南   HTTP权威指南.pdf   计算的本质:深入剖析程序和计算机.pdf

  • 12
    点赞
  • 97
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
好的,以下是一个简易的 Vue 对话界面示例代码,已经适配了手机端: ``` <template> <div class="container"> <div class="chat-box"> <div class="chat-message" v-for="(message, index) in messages" :key="index"> <div v-if="message.sender === 'user'" class="user-message">{{ message.text }}</div> <div v-else class="bot-message">{{ message.text }}</div> </div> </div> <div class="input-box"> <input v-model="inputText" @keyup.enter="sendMessage" type="text" placeholder="请输入消息..."> <button @click="sendMessage">发送</button> </div> </div> </template> <script> export default { name: 'ChatBox', data() { return { messages: [], inputText: '' } }, methods: { sendMessage() { if (this.inputText.trim() !== '') { this.messages.push({ sender: 'user', text: this.inputText }); this.inputText = ''; // 在此处添加与 AI 的对话逻辑 } } } } </script> <style scoped> .container { display: flex; flex-direction: column; height: 100%; width: 100%; } .chat-box { flex: 1; overflow-y: scroll; padding: 10px; } .chat-message { margin-bottom: 10px; } .user-message { background-color: #EEE; padding: 5px; border-radius: 10px; max-width: 70%; align-self: flex-end; } .bot-message { background-color: #DDD; padding: 5px; border-radius: 10px; max-width: 70%; align-self: flex-start; } .input-box { display: flex; height: 50px; width: 100%; padding: 10px; box-sizing: border-box; } input { flex: 1; border: none; outline: none; padding: 10px; border-radius: 5px; margin-right: 10px; } button { border: none; outline: none; background-color: #07C; color: #FFF; padding: 10px 20px; border-radius: 5px; cursor: pointer; } </style> ``` 该示例代码包含了一个聊天框和一个输入框,用户可以输入消息并发送,发送的消息将显示在聊天框中。你需要在 `sendMessage` 方法中添加与 AI 的对话逻辑,以便实现对话交互。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值