#msg_list {
  height: 370px; /* 固定高度 */
  width:100%;
  overflow-y: scroll; /* auto;  垂直方向内容溢出时显示滚动条 */
  overflow-x: hidden; /* 水平方向隐藏滚动条 */
  box-sizing: border-box; /* 确保padding和border不会影响总高度 */
  padding: 10px;
  background-color: #f5f5f5;
  scroll-behavior: smooth; /* 平滑滚动 */
  border: 1px solid #666;
}
.msglistcenter {
    color:#777;
    font-size:12px;
    text-align: center;      /* 文本内容居中对齐 */
    display: flex;
    justify-content: center; /* 子元素居中排列 */
}
.msglistright {
    text-align: right; /* 文本内容右对齐 */
    display: flex;
    justify-content: flex-end; /* 子元素靠右排列 */
}
.msglistleft {
    text-align: left;        /* 文本内容左对齐 */
    display: flex;
    justify-content: flex-start; /* 子元素靠左排列 */
}