摘要: 只有一点 如果要在移动端播放媒体,除了点击媒体的自带控件,需要触发一个交互事件(如touch,click)才能播放媒体,因为需要用户参与。 阅读全文
posted @ 2016-05-04 16:37 Json_cheeTsui 阅读(177) 评论(0) 推荐(0)
摘要: position设置为relative 此时元素可以根据自己原来的位置通过 ,`right bottom left`进行相对的移动。但元素依旧占据着原来的空间(这个很重要)。 position设置为absolute 绝对定位会使元素从文档流中脱离开来,不再占据原来的位置。绝对定位会相对于p... 阅读全文
posted @ 2016-01-13 10:04 Json_cheeTsui 阅读(368) 评论(0) 推荐(0)
摘要: 为父元素添加overflow:hidden html标签(以下都以此为准): Hello World Whatever style写法: .parent{ border:1px solid red; overflow:hidden; } .child{ widt... 阅读全文
posted @ 2016-01-13 09:30 Json_cheeTsui 阅读(132) 评论(0) 推荐(0)
摘要: 直接添加代码 function ImagePreloader(images, call back) { // 保存回调函数 this.call back = call back; // 状态初始化. this.nLoaded = 0; this.nProcessed = 0; this.aImag... 阅读全文
posted @ 2016-01-12 16:36 Json_cheeTsui 阅读(219) 评论(0) 推荐(0)
摘要: 区块元素 标题 使用1 6个 ,或者使用=和 ,来标记不同阶的标题: This is an H1 ========= This is an H2 或者是: 这是 H1 这是 H2 这是 H6 区块引用 Markdown 标记区块引用是使用类似 email 中用 的引用方式。 区块引用可以嵌套(例... 阅读全文
posted @ 2016-01-12 10:43 Json_cheeTsui 阅读(3164) 评论(0) 推荐(0)