微信小程序聊天功能PHP,微信小程序实现聊天对话(文本、图片)功能

本文详细介绍了前端页面的设计,包括使用CSS进行布局、字体设置、图片尺寸以及交互元素的实现。通过实例展示了如何创建响应式的tab组件,以及时间线和消息通知的设计技巧。文章还强调了用户体验和视觉一致性的重要性。
摘要由CSDN通过智能技术生成

page {

background-color: #f7f7f7;

}

.tab {

padding: 20rpx 20rpx 40rpx 50rpx;

height: 20%;

background-color: white;

}

.tab .tent {

font-size: 33rpx;

margin-bottom: 30rpx;

}

.jia_img{

height: 80rpx;

width: 90rpx;

}

.new_imgtent{

height: 180rpx;

width: 190rpx;

}

.tab .fabu {

font-size: 33rpx;

margin-top: 30rpx;

margin-bottom: 30rpx;

}

.xiahuaxia {

width: 80%;

text-align: center;

margin: 0 auto;

position: relative;

top: 60rpx;

}

.time {

text-align: center;

padding: 5rpx 20rpx 5rpx 20rpx;

width: 200rpx;

font-size: 26rpx;

background-color: #E8E8E8;

}

.new_top_txt {

width: 50%;

position: relative;

top: 38rpx;

text-align: center;

margin: 0 auto;

font-size: 30rpx;

color: #787878;

background-color: #f7f7f7;

}

/聊天内容/

.news {

margin-top: 30rpx;

text-align: center;

margin-bottom: 150rpx;

}

.img_null {

height: 60rpx;

}

.l {

height: 5rpx;

width: 20%;

margin-top: 30rpx;

color: #000;

}

/聊天/

.my_right {

float: right;

position: relative;

right: 40rpx;

}

.you_left {

float: left;

position: relative;

left: 5rpx;

}

.new_img {

width: 100rpx;

height: 100rpx;

border-radius: 50%;

}

.new_txt {

width: 380rpx;

border-radius: 7px;

background-color: #95d4ff;

padding: 0rpx 30rpx 0rpx 30rpx;

}

.sanjiao {

top: 20rpx;

position: relative;

width: 0px;

height: 0px;

border-width: 10px;

border-style: solid;

}

.my {

border-color: transparent transparent transparent #95d4ff;

}

.you {

border-color: transparent #95d4ff transparent transparent;

}

.sendmessage {

background-color: white;

width: 100%;

position: fixed;

bottom: 0rpx;

display: flex;

flex-direction: row;

}

.sendmessage input {

width: 80%;

height: 40px;

background-color: white;

line-height: 40px;

font-size: 14px;

border: 1px solid #d0d0d0;

padding-left: 10px;

}

.sendmessage button {

border: 1px solid white;

width: 18%;

height: 40px;

background: #fff;

color: #000;

line-height: 40px;

font-size: 14px;

}

.historycon {

height: 90%;

width: 100%;

flex-direction: column;

display: flex;

margin-top: 100rpx;

border-top: 0px;

}

.hei{

margin-top: 50px;

height: 20rpx;

}

.history {

height: 100%;

margin-top: 15px;

margin: 10px;

font-size: 14px;

line-height: 40px;

word-break: break-all;

}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值