最近在学习Udacity的Front-end Nano degree,由google、udacity等的前端工程师们授课,里面除了讲到许多基础知识之外,还提供了许多有价值的资源,今天要说的是做网页的时候经常用到的placeholder。
下面是课程里给的两个链接:
The Top 8 Placeholder Services for Web Designers
Tired of Lorem Ipsum? Check Out These 12 Hilarious Image and Text Placeholders
但是两个链接里面提到的很多链接已经失效,下面两个是我觉得比较高效、有趣的链接:
- placekitten.com,这里有很多非常可爱的小猫,比如下面这一只:
可以设置img的src为http://placekitten.com/800/300。
- placeimg.com,这里有几种类型的placeholder可供选择,比如下面这张:
可以设置src为https://placeimg.com/640/480/any/sepia。