在github里面的文件路径是https://github.com/gavin125/Sass-test/blob/master/html/index.html
那么我们需要在这个地址前面加上http://htmlpreview.github.io/?
最终生成为http://htmlpreview.github.io/?https://github.com/gavin125/Sass-test/blob/master/html/index.html
即可预览网页效果
原文:http://www.cnblogs.com/gavin125/p/4933872.html