JS小实例-模拟短信发送

 

JS小实例-模拟短信发送_第1张图片

 

HTML代码:

 

 

 

  • 你好

  • 你好

          

        

 

 

index.css代码:

.box {

width: 236px;

height: 476px;

background: url(../img/phone.jpg) no-repeat;

margin: 0 auto;

position: relative;

}

 

.box .box_cont {

width: 188px;

height: 333px;

position: absolute;

left: 25px;

top: 71px;

}

 

.box_cont #cont {

width: 188px;

height: 294px;

border-bottom: 1px solid #c7cbca;

overflow: auto;

}

 

.box_cont .more {

height: 33px;

padding-top: 5px;

}

 

.more #people {

display: inline-block;

width: 24px;

height: 24px;

border: 1px solid #c7cbca;

border-radius: 3px;

margin-left: 3px;

cursor: pointer;

float: left;

}

 

.more #text {

width: 111px;

height: 24px;

border: 1px solid #c7cbca;

border-radius: 3px;

margin-left: 3px;

float: left;

}

 

.more #btn {

border: none;

background-color: white;

height: 24px;

font-size: 16px;

color: #979596;

margin-left: 3px;

}

 

#cont #cont_word {

line-height: 18px;

font-size: 12px;

background-color: yellowgreen;

}


 

/* 清除浮动 */

 

.clearfix:after {

content: "";

display: block;

clear: both;

}

 

reset.css代码:

ul,li{

  padding:0px;

  margin:0px;

}

li{

  list-style: none;

}

input{

  padding:0px;

}

s{

  text-decoration: none;

}

 

图片:

JS小实例-模拟短信发送_第2张图片

 

 

 

你可能感兴趣的:(前端)