0

こんにちは、固定ヘッダーと返信テキストボックスを使用してチャットボックスを実現するにはどうすればよいのでしょうか。これまでのところ、これは私が持っているものです。

.headerchat{
background-color: #336699;
width: 100%;
padding-top: 3px;
padding-bottom: 3px;
font-weight: bold;
color: #fff;
display: block;
}
.buddies {
    background-color: #fff;
    border: 1px solid #ccc;
    bottom: 30px;
    display: none;
    font-size: 12px;
    left: 205px;
    position: fixed;
    width: 235px;
    height: 200px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}
.messages {
    background-color: #fff;
    border: 1px solid #ccc;
    bottom: 30px ;
    font-size: 12px;
    display: none;
    left: 205px;
    position: fixed;
    width: 235px;
    height: 400px;
    margin: 0;
    padding: 0;
    overflow: scroll;
    z-index: 100;   
}
.gray{
    color:#aaa;
}
.chat{
    word-wrap:break-word;
    width: 235px;
}
.username{
    text-decoration: none;
    color: #336699;
    text-transform: capitalize;
}
.username:hover{
    text-decoration: none;
    color: #6699aa;
}
.conversation{
    width:235px;
    padding: 0;
    border-bottom: 1px dotted #999;
    float: left;
}
/*.conversationpicture{
    float:left;
}*/
.closecontainer{
    float: right;
}
.close, .close:hover{
    text-decoration: none;
    font-weight: bolder;
    color: #fff;
}
.buddycontainer
{
    float:left;
}
.formchattext
{
    display: block;
    font-size:12px;
    border:1px solid #ccc;
    width:234px;
    padding: 0;
    margin: 0;
    height: 30px;
    position: fixed;
    bottom: 30px;
}

http://jsfiddle.net/ENydt/

私が達成したいのは、固定ヘッダー、スクロール可能なコンテンツ、および固定の返信テキストフィールドを持つことです。

Overflow-x: scroll; を試しました。.buddies と .messages の両方にまだ運がありません。私はまだ初心者なので、本当に申し訳ありません。じっくり見ていただければ。ありがとう。

4

1 に答える 1