摘要:
1、数组的创建var arrayObj = new Array(); //创建一个数组var arrayObj = new Array([size]); //创建一个数组并指定长度,注意不是上限,是长度var arrayObj = new Array([element0[, element1[, .... 阅读全文
摘要:
排行榜 节目名称 表演部门 获得票数 ... 阅读全文
摘要:
抽奖页面+js代码 ... 阅读全文
摘要:
function randomColor(){ $str = '#'; for ($i=0; $i < 6; $i++) { $randomNum = rand(0,15); switch ($randomNum) { case '10... 阅读全文
摘要:
// 获取二十四个月份 function allMonth($start,$end){ $startTime = strtotime($start.'01'); $monthArr = array(); $i=0; ... 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <title>侧边栏分享</title> <style type="text/css"> *{margin: 0px;padding: 0px;} #div1{width: 120px;height: 200px;background: r 阅读全文
摘要:
1: span 标签设置width属性 需要让span:display:block; 当span 有float 和定位样式的时候 不需要添加。2: 定位: position:relative, fixed, absolute;常用定位 position:absolute;和float:le... 阅读全文