摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>仿浏览器滚动条</title> <style type="text/css"> * { margin: 0; padding: 0; } #demo { wid 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> * { padding: 0; margin: 0; list-style: none } #wrap { width: 960px; heigh 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> #box1 { width: 100px; height: 100px; background: red; position: absolute; 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> div{ width: 300px; height: 300px; background-color: red; opacity: 0.3;/*0 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> * { margin: 0; padding: 0; } div { width: 100px; height: 100px; backgroun 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> * { margin: 0; padding: 0; } ul { list-style: none; posit 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> img{ position: absolute; width: 300px; height: 200px; bac 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
摘要:
事件委托处理: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> * { margin: 0; padding: 0; } .wrap { width: 200px 阅读全文
摘要:
// 一个从小到大排好序的数组。现输入一个数,要求按原来的规律将它插入数组中 var arr = [2,5,8,9]; function insert(a,n){ // 检测新数字要放入的位置 for(var i=0;i<a.length;i++){ if(n < a[i]){ break; } } 阅读全文