摘要: 众所周知,给元素设置 inline-block ,可以让ie下的元素出发layout:1。但是,当给元素设置 inline-block 后,在另外一个class 样式(非设置inline-block的class样式)重置为inline或者block。对于ie6下,该元素还会保留触发 layout:1... 阅读全文
posted @ 2015-04-12 21:14 破男孩 阅读(172) 评论(0) 推荐(0)
摘要: 找到配置文件httpd.conf 并用编辑器打开。在添加端口之前,我们可以查看端口是否已经被开启,命令如下:window查看端口:# 查看所有端口$ netstat -n -a# 查看 8081 端口是否被占用$ netstat -aon|findstr "8081" Mac查看端口:lsof -... 阅读全文
posted @ 2015-04-12 20:02 破男孩 阅读(4518) 评论(0) 推荐(0)
摘要: Mac下自带apache,而apache的默认位置为:/etc/apache2/windows下apache位置则是你安装的位置。Mac下apache操作(需要需要超级管理员权限): 运行apache: sudo apachectl start 停止apache: sudoapachectlst... 阅读全文
posted @ 2015-04-12 19:47 破男孩 阅读(189) 评论(0) 推荐(0)
摘要: 运行 yo angular 出现如下提示:$ yo angular grunt-cli: The grunt command line interface. (v0.1.9) Fatal error: Unable to find local grunt. If you're se... 阅读全文
posted @ 2015-04-12 15:23 破男孩 阅读(351) 评论(0) 推荐(0)
摘要: 使用 yeoman 构建项目之前,你需要安装这两个环境:node,ruby。为什么需要使用node?因为我们需要使用grunt自动化工具,而grunt工具则是依赖node。为什么需要使用ruby?我开发项目很可能需要用到sass或者compass等,而这两个工具则是依赖ruby。yeoman依赖工具... 阅读全文
posted @ 2015-04-12 15:11 破男孩 阅读(312) 评论(0) 推荐(0)
摘要: 今天在使用 yeoman 的时候,当我运行 grunt serve 命令的时候,出现如下提示:1、Error: Cannot find module 'load-grunt-tasks'$ grunt serveLoading "Gruntfile.js" tasks...ERROR>> Error... 阅读全文
posted @ 2015-04-12 14:03 破男孩 阅读(7038) 评论(2) 推荐(0)