本文实例讲述了Bootstrap实现前端登录页面带验证码功能。分享给大家供大家参考,具体如下:
Bootstrap有自定义的验证码样式,在前端页面可以直接使用,他的css、js在使用前要在开头引入
上代码:
登录 .carousel-inner img { width:100%; height:100%; } .jumbotron { margin-top: 10px; margin-bottom: 0px; padding-top: 10px; } #demo { width:100%; height: 500px; } .row { height: 264px; } .left { float: left; width: 70%; } .right { float: left; width: 30%; } .card { height: 340px; } .carousel-inner { height: 500px; } .footer { position: absolute; bottom: 0; height: 60px; } .jumheight1 { height: 100px; } .jumheight2 { height: 100px; } .end_name { margin-bottom: 5px; } .footer2 { padding-top: 210px; text-align: center; } .test{ margin-bottom: 75px; } .carousel-control-prev, .carousel-control-next{ bottom: 120px; }
效果图:
这里还有轮播图,点击验证码时会更新
可以使用在线HTML/CSS/Javascript代码运行工具:http://tools.jb51.net/code/HtmlJsRun测试上述代码运行效果。
PS:关于bootstrap布局,这里再为大家推荐一款本站的在线可视化布局工具供大家参考使用:
在线bootstrap可视化布局编辑工具:
http://tools.jb51.net/aideddesign/layoutit
希望本文所述对大家基于bootstrap的程序设计有所帮助。



