效果:
代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>huanhangtiao</title> <style> a{ width:17px; height:20px; font:12px/20px "宋体"; border:1px solid #e0e1e2; display:inline-block; text-align:center; color: #2052a3; } .shang{ width:64px; } a:hover,.active{ background-color:#1f3a87; color:#fff; } </style> </head> <body> <div class=""> <a class="shang">上一页</a> <a>1</a> <a>2</a> <a class="active">3</a> <a>4</a> <a>5</a> <a>6</a> <a>7</a> <a>8</a> <a>9</a> <a class="shang">下一页</a> </div> </body> </html>
以上就是小编为大家带来的学习小实例--滚动条的简单实现全部内容了,希望大家多多支持积木网~
cookie解决微信不能存储localStorage的问题
在开发基于微信的Web页面时,发现有些机型不能存储信息到localStorage中,或者是页面一旦关闭,存储的信息也失效了。用cookie来替代localStorage,存储一
div的offsetLeft与style.left区别
clientX事件属性返回当事件被触发时鼠标指针向对于浏览器页面(或客户区)的水平坐标。客户区指的是当前窗口。如果父div的position定义为relative,子div
input submit、button和回车键提交数据详解
forminputname="name"inputtype="submit"value="提交"/form以这种方式提交,input值为22222222时,后面递交的url就会变为localhost:3980/input.htmlname=222222其中有些值得注意的