原创 div 包裹img,div 高度大於img

why? this is a natural behavior of image because img is an inline element so user agents leave some space for descen

原创 npm link

對開發者而言,這算是最有價值的命令。假設我們開發了一個模塊叫 test ,然後我們在 test-example 裏引用這個模塊 ,每次 test 模塊的變動我們都需要反映到 test-example 模塊裏。不要擔心,有了 npm li

原创 擴充cmd的工具

Console Console is a free windows console enhancement tool that has some of the features that the Command Prompt l

原创 inline elment new line

HTML <h3> <span class="label">This is the main label</span> <span class="secondary-label">secondary label</sp

原创 svn 開發資料

參考:http://blog.sina.com.cn/s/blog_6168c7aa0101ph0q.html

原创 touch click 的關係

#1 - Clicking and Tapping - the "Natural" Order of Things The first problem is that touch interfaces typically try

原创 webkit 瀏覽器,多行省略

@media all and (-webkit-transform-3d) { .sc_structure_doc .sc_title { white-space:normal; -webkit-line-clam

原创 git 常用命令

1 比較兩個版本之間有哪些文件有變化 git diff --name-status HEAD~2 HEAD~3 點贊 收藏 分享 文章舉報 xiongzhengxiang

原创 compass 編譯 sourcemap 配置

參考: https://chillco.com/blog/setting-sass-and-compass-source-maps 點贊 收藏 分享 文章舉報 xiongzhen

原创 調試node 代碼的方式

1 安裝 node-inspector    npm install -g node-inspector 2 運行    node-inspector 3 開啓node的調試模式    如 node --debug c:\users\Ad

原创 git ignore 文件和文件夾

參考: http://blog.csdn.net/benkaoya/article/details/7932370

原创 chrome 插件在系統上面的安裝位置

C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\Extensions\ Administrator 是登錄用戶的名稱 點贊 收

原创 svn 回滾的命令

第一種情況:改動沒有被提交(commit)。 這種情況下,使用svn revert就能取消之前的修改。 svn revert用法如下: # svn revert [-R] something 其中something可以是(目錄

原创 如何發佈node 模塊

發佈 完成了上面的步驟之後,我們接下來要在www.npmjs.org註冊一個賬號,這個賬號會被添加到npm本地的配置中,用來發布module用。 $ npm adduser Username: your name Passwo

原创 css 多列布局

參考:http://www.w3cplus.com/solution/itemlist/itemlist.html