首页 > 其他 > 详细

介绍一个牛X的样式counter

时间:2017-02-08 17:10:15      阅读:259      评论:0      收藏:0      [点我收藏+]
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
body{counter-reset:liu}
.after:after{content:counter(liu)}
input:checked{counter-increment:liu}
</style>
</head>
<body>
	<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
  <span class="after"></span>
	
</body>
</html>

  

介绍一个牛X的样式counter

原文:http://www.cnblogs.com/liuhao-web/p/6379003.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!