摘要: <!doctype html><html> <head> <meta charset="UTF-8"> <title>旋转</title> <style> body { background-color:#000; } td { width:10px; height:10px; border-rad 阅读全文
posted @ 2016-10-14 17:59 happiness木木 阅读(160) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> #div1{ width: 100px; height: 100px; background-color: #4D 阅读全文
posted @ 2016-10-14 17:32 happiness木木 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 为了兼容多个浏览器,css3通常前面加一大堆前缀 -webkit /*为Chrome/Safari*/-moz /*为Firefox*/-ms /*为IE*/-o /*为Opera*/ -webkit-transform:rotate(-3deg); /*为Chrome/Safari*/-moz-t 阅读全文
posted @ 2016-10-14 17:17 happiness木木 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 给了两个并排带边框的div百分比宽度,假如不用box-sizing,边框的宽度会在行内显示。用box-sizing:border-box,可以去除边框的占位。 浏览器支持IE9以上及火狐、谷歌、Opera等等。 <style> div.container{width:30em;border:1em 阅读全文
posted @ 2016-10-14 17:14 happiness木木 阅读(142) 评论(0) 推荐(0) 编辑
摘要: html,body{ font-size: 10px;}@media screen and (min-width: 319px) { html, body { font-size: 12px; }}@media screen and (min-width: 359px) { html,body{ f 阅读全文
posted @ 2016-10-14 16:51 happiness木木 阅读(309) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE><html><head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1. 阅读全文
posted @ 2016-10-14 16:39 happiness木木 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 在响应式网页的设计过程中,其中也会涉及到一些用户体验方面的问题和弊端,需要进一步的优化。 (1)减轻Javascript库负载 对于移动端来说,jQuery表现的太过厚重,而现在针对移动端的状态来说,有jQuery Mobile、YUI、XUI等可供选择的框架。 (2)减少HTTP请求次数 移动端相 阅读全文
posted @ 2016-10-13 18:33 happiness木木 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Event 对象 Event 对象代表事件的状态,比如事件在其中发生的元素、键盘按键的状态、鼠标的位置、鼠标按钮的状态。 事件通常与函数结合使用,函数不会在事件发生前被执行! 一、什么是事件冒泡 在一个对象上触发某类事件(比如单击onclick事件),如果此对象定义了此事件的处理程序,那么此事件就会 阅读全文
posted @ 2016-10-11 14:37 happiness木木 阅读(15916) 评论(0) 推荐(0) 编辑
摘要: 父元素:display:table; 子元素:display:table-cell;vertical-align:middle; 阅读全文
posted @ 2016-10-10 14:58 happiness木木 阅读(210) 评论(0) 推荐(0) 编辑
摘要: git status --查看文件状态 git add+文件路径 --上传到缓存区 git add --all --全部传到缓存区 git commit -m ‘描述’ --对上传文件做描述 git diff+文件路径/git diff --查看修改内容 git branch --产看分支 git 阅读全文
posted @ 2016-10-10 14:51 happiness木木 阅读(184) 评论(0) 推荐(0) 编辑