<div class="im-chat">
<div class="im-chat-main">
<div class="im-chat-row">
<div class="im-chat-tips">
<span class="im-time">18:14</span>
</div>
</div>
<div class="im-chat-row">
<div class="im-chat-box">
<div class="im-avatar"><img src="images/avatar2.png" alt=""></div>
<div class="im-col-chat">
<div class="im-chat-cont">
学习进度怎么样了?
</div>
</div>
</div>
</div>
<div class="im-chat-row">
<div class="im-chat-box">
<div class="im-avatar"><img src="images/avatar2.png" alt=""></div>
<div class="im-col-chat">
<div class="im-chat-cont">
学习进度怎么样了?
</div>
</div>
</div>
</div>
<div class="im-chat-row">
<div class="im-chat-box im-chat-guest">
<div class="im-avatar"><img src="images/avatar3.png" alt=""></div>
<div class="im-col-chat">
<div class="im-chat-cont">
您好,方便给个电话吗?
</div>
</div>
</div>
</div>
<div class="im-chat-row">
<div class="im-chat-box im-chat-guest">
<div class="im-avatar"><img src="images/avatar4.png" alt=""></div>
<div class="im-col-chat">
<div class="im-chat-cont">
您好,方便给个电话吗?
</div>
</div>
</div>
</div>
</div>
<div class="im-chat-footer">
<input type="text" class="chat-input" placeholder="输入文字内容">
<button class="btn-chat-send">发送</button>
</div>
</div>
/*对è¯*/
.im-chat{
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 50px;
}
.im-chat-footer{
background: #f1f1f1;
padding: 8px 10px;
position: absolute;
left: 0;
right: 0;
bottom: -50px;
padding-right:75px;
border-top: 1px solid #e3e3e3
}
.chat-input{
line-height:36px;
outline: none;
padding: 0 10px;
width: 100%;
border: 0;
border-radius: 5px;
box-sizing: border-box;
display: block;
}
.im-chat-footer .btn-chat-send{
padding: 0 15px;
height: 36px;
line-height: 32px;
border: 0;
outline: none;
color: #fff;
background: #428bff;
border-radius:5px;
position: absolute;
right: 10px;
top: 9px;
}
.im-chat-box{
overflow: hidden;
}
.im-chat-box .im-avatar{
width: 40px;
height: 40px;
float: left;
}
.im-avatar img{
width: 40px;
height: 40px;
border-radius: 40px;
display: block;
}
.im-chat-box .im-col-chat{
overflow: hidden;
padding-left: 15px;
}
.im-chat-row{
padding:10px 20px;
}
.im-chat-cont{
display: inline-block;
max-width: 60%;
font-size: 14px;
line-height: 20px;
padding:10px;
position: relative;
border-radius: 5px;
background: #fff;
}
.im-chat-cont:after{
display: block;
content: ' ';
width: 0;
height: 0;
border-top: 8px solid #FFFFFF;
border-left: 8px solid transparent;
position: absolute;
left: -8px;
top: 50%;
margin-top: -5px;
}
.im-chat-guest .im-avatar{
float: right;
margin-right: 0;
}
.im-chat-guest .im-col-chat{
text-align: right;
padding-right: 15px;
}
.im-chat-guest .im-chat-cont{
text-align: right;
/*background: #a2e555;*/
color: #333;
}
.im-chat-guest .im-chat-cont:after{
width: 0;
height: 0;
border-top: 8px solid #FFFFFF;
border-right: 8px solid transparent;
position: absolute;
left: auto;
right: -8px;
}
.im-chat-main{
width: 100%;
padding: 10px 0;
overflow-y: auto;
position:absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
}
.fixed-bar-space{
background: none;box-shadow: 0 0 0px rgba(0, 0, 0, 0);
}
.im-chat-tips{
text-align: center;
}
.im-chat-tips .im-time{
display: inline-block;
height: 25px;
line-height: 25px;
padding: 0 20px;
color: #999999;
font-size: 14px;
}
.im-chat-header{
background: #f1f1f1;
line-height: 45px;
text-align: center;
}
.weui-skin_android,
.js_dialog{
position: relative;
z-index: 1110;
}
.weui-skin_android .weui-actionsheet{
width: 225px;
}
.weui-skin_android .weui-actionsheet__cell{
padding: 20px 20px;
display: block;
color: #333333;
}
.weui-actionsheet__cell span{
display: inline-block;
line-height: 22px;
padding-left: 25px;
}
.weui-actionsheet__cell .del{
background: url(../images/ls/del-ico.png) left center no-repeat;
background-size: 18px 18px;
}
.weui-actionsheet__cell .share{
background: url(../images/ls/share-ico.png) left center no-repeat;
background-size: 18px 18px;
}
.weui-dialog-tips{
padding: 25px 0 15px 0;
}
.weui-dialog-tips img{
width: 60px;
}
.weui-dialog__button{
padding: 20px;
overflow: hidden;
}
.weui-dialog__button .weui-btn{
margin: 0;
width: 110px;
font-size: 16px;
}
.weui-dialog__button .weui-btn:after{
display: none;
}
.weui-dialog__button .weui-dialog_cancel{
border: 1px solid #e3e3e3;
color: #666666;
float: left;
}
.weui-dialog__button .weui-dialog_submit{
border: 1px solid #428bff;
color: #FFFFFF;
background: #428bff;
float: right;
}
.weui-dialog{
max-width: 280px;
}