提交 cd5e6d33 authored 作者: Anthony Minessale's avatar Anthony Minessale

update css

上级 fbf4ccdf
...@@ -9,54 +9,59 @@ ...@@ -9,54 +9,59 @@
<title>FreeSWITCH Verto&trade; Demo</title> <title>FreeSWITCH Verto&trade; Demo</title>
<style type="text/css"> <style type="text/css">
.pageheader { .pageheader {
font-size: 22px; font-size: 22px;
font-weight: normal; font-weight: normal;
height: 27px; height: 27px;
} }
.ctlbtn { .ctlbtn {
border: 0px; border: 0px;
color: #eeeeee; color: #eeeeee;
background-color: #0000ae; background-color: #0000ae;
font-face: arial; font-face: arial;
height:18px; height:18px;
font-size:7pt; font-size:7pt;
} }
.ctlbtn:hover { .ctlbtn:hover {
color: #ffffae; color: #ffffae;
cursor: pointer; cursor: pointer;
} }
#chatwin
{
background-color: #eeeeee;
#chatwin width: 500px;
{ height:150px;
background-color: #eeeeee; max-height:150px;
width: 500px; overflow-y: scroll;
height:150px; scrolling: auto;
max-height:150px; text-align: left;
overflow-y: scroll; border-style:inset;
scrolling: auto; font-size: 10pt;
text-align: left; color: #3333ff;
border-style:inset; }
font-size: 10pt;
} .chatuid
{
.l1 font-size: 7pt;
{ font-weight: bold;
border:1; color: #ff3333;
background-color:#fefefe; }
height:1px;
opacity:0.4; .l1
} {
#chatmsg border:1;
{ background-color:#fefefe;
width:400px; height:1px;
max-height:40px; opacity:0.4;
} }
#chatmsg
{
width:400px;
max-height:40px;
}
</style> </style>
......
...@@ -111,7 +111,7 @@ var callbacks = { ...@@ -111,7 +111,7 @@ var callbacks = {
var body = data.body.replace(/(http[s]{0,1}:\/\/\S+)/g, "<a target='_blank' href='$1'>$1<\/a>"); var body = data.body.replace(/(http[s]{0,1}:\/\/\S+)/g, "<a target='_blank' href='$1'>$1<\/a>");
body = body.replace(/(?:\r\n|\r|\n)/g, '<br />'); body = body.replace(/(?:\r\n|\r|\n)/g, '<br />');
$("#chatwin").append("<b>" + data.from + "</b>:<br>" + "" + body + "" + "<br>"); $("#chatwin").append("<span class=chatuid>" + data.from + ":</span><br>" + body);
$('#chatwin').animate({"scrollTop": $('#chatwin')[0].scrollHeight}, "fast"); $('#chatwin').animate({"scrollTop": $('#chatwin')[0].scrollHeight}, "fast");
break; break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论