2016年11月22日
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> #table { width: 400px; border-collapse: collapse; } </sty 阅读全文
posted @ 2016-11-22 22:50 代码小公主 阅读(4817) 评论(0) 推荐(1) 编辑
  2016年11月19日
摘要: html部分 <html> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" type="text/css" href="css/reset.css"/> <link rel="stylesheet" href= 阅读全文
posted @ 2016-11-19 19:58 代码小公主 阅读(3794) 评论(4) 推荐(2) 编辑
摘要: var arr = [4, 0, 7, 9, 0, 0, 2, 6, 0, 3, 1, 0];要求将数组中的0项去掉,将不为0的值存入一个新的数组,生成新的数组 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <tit 阅读全文
posted @ 2016-11-19 11:25 代码小公主 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> #div1 { height: 100px; width: 100px; background-color: re 阅读全文
posted @ 2016-11-19 10:57 代码小公主 阅读(949) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> ul, li { margin: 0; padding: 0; list-style-type: none; } 阅读全文
posted @ 2016-11-19 10:53 代码小公主 阅读(487) 评论(0) 推荐(1) 编辑
  2016年11月16日
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> #main{ height: 400px; width: 400px; margin: 20px auto; } 阅读全文
posted @ 2016-11-16 20:28 代码小公主 阅读(2970) 评论(0) 推荐(1) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> #box{ background-color: green; border-radius: 20px; paddi 阅读全文
posted @ 2016-11-16 20:14 代码小公主 阅读(611) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <input type="text" placeholder="请输入一个数字" /> <input type="text" pla 阅读全文
posted @ 2016-11-16 20:09 代码小公主 阅读(15900) 评论(1) 推荐(1) 编辑
  2016年11月5日
摘要: html部分(图片都是本地,自己需要改动图片) <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css/one.css" 阅读全文
posted @ 2016-11-05 22:40 代码小公主 阅读(515) 评论(0) 推荐(0) 编辑
摘要: html部分 <!DOCTYPE html> <!--下面三个百分比都是为了实现后期项目优化的时候,实现自适应屏幕的宽度和高度--> <html style="height: 100%;"> <!--这个需要HTML标签上也得加上style="height:100%"才行,要不然会显示一半,经常用C 阅读全文
posted @ 2016-11-05 09:46 代码小公主 阅读(1621) 评论(0) 推荐(0) 编辑