摘要: 效果图:index.html test 10style.css.page { font-size: 24px; color: red;}.page:before { content: '共'; font-size: 14px; margin-right: 5px;... 阅读全文
posted @ 2017-07-21 13:56 zc的救赎 阅读(133) 评论(0) 推荐(0)
摘要: 1、冒泡排序package lizicong;import java.util.Scanner;public class BubbleSort { /* * 属于交换排序;稳定 * 排序原理:相邻的两个元素依次比较,相互交换 * 时间复杂度:最好o(n),最差o... 阅读全文
posted @ 2017-06-21 17:03 zc的救赎 阅读(249) 评论(0) 推荐(0)
摘要: H5新特性:新增选择器 document.querySelector、document.querySelectorAll拖拽释放(Drag and drop) API媒体播放的 video 和 audio本地存储 localStorage 和 sessionStora... 阅读全文
posted @ 2017-06-07 14:25 zc的救赎 阅读(144) 评论(0) 推荐(0)
摘要: 1、BoxBox 是 CSS 布局的对象和基本单位,元素的类型和 display 属性,决定了这个 Box 的类型。比较常见的有:block-level box:display 属性为 block, list-item, table 的元素,会生成 block-lev... 阅读全文
posted @ 2017-06-05 14:37 zc的救赎 阅读(151) 评论(0) 推荐(0)
摘要: 1、元素分为块级元素和行内元素,块级元素可以设置宽高,会自动换行,并且会发生相邻margin的合并问题。行内元素设置宽和高无效,以水平方向排列,(行内元素,绝对定位,浮动元素不会发生外边距合并)并且垂直方向的margin和padding都是无效的。2、displayd... 阅读全文
posted @ 2017-06-05 11:49 zc的救赎 阅读(343) 评论(0) 推荐(0)
摘要: visibility: hidden; 这个属性只是简单的隐藏某个元素,但是元素占用的空间任然存在opacity: 0; CSS3属性,设置0可以使一个元素完全透明position: absolute; 设置一个很大的 left 负值定位,使元素定位在可见区域之外di... 阅读全文
posted @ 2017-06-02 18:11 zc的救赎 阅读(191) 评论(0) 推荐(0)
摘要: id选择器 #id类选择器 .class标签选择器 div, h1, p相邻选择器 h1 + p子选择器 ul > li后代选择器 li a通配符选择器 *属性选择器 a[rel='external']伪类选择器 a:hover, li:nth-child ... 阅读全文
posted @ 2017-06-02 18:08 zc的救赎 阅读(85) 评论(0) 推荐(0)
摘要: 新增选择器 p:nth-child(n){color: rgba(255, 0, 0, 0.75)}弹性盒模型 display: flex;多列布局 column-count: 5;媒体查询 @media (max-width: 480px) {.box: {colu... 阅读全文
posted @ 2017-06-02 18:05 zc的救赎 阅读(123) 评论(0) 推荐(0)
摘要: :root 选择文档的根元素,等同于 html 元素:empty 选择没有子元素的元素:target 选取当前活动的目标元素:not(selector) 选择除 selector 元素意外的元素:enabled 选择可用的表单元素:disabled 选择禁用的表单元素... 阅读全文
posted @ 2017-06-02 18:01 zc的救赎 阅读(155) 评论(0) 推荐(0)
摘要: 看到一篇不错的博文,如果想写出比较高性能的代码,可参看这个链接http://developer.51cto.com/art/200906/131335.htm 阅读全文
posted @ 2017-06-01 17:24 zc的救赎 阅读(98) 评论(0) 推荐(0)