“Dummy Image” placeholder for webpage

夙愿已清 提交于 2021-01-29 08:29:43

问题


When developing a web page/application, I often don't have all the data right upfront. Sometimes I need to put dummy text and images in places to get the overall feel of how its going to look. For dummy text, I can use Lorem Ipsum to generate such junk text. But how can I do something similar with images?


回答1:


Similar to Lorem Ipsum, theres this one: Lorem Pixel This generates placeholder images for your html if the specified size. The url of the site follows the pattern : http://lorempixel.com/[width]/[height]/[category(optional)]/[number(optional)]/

An example of this is: 400 by 200px sports image

If you are using brackets, it comes with an extension for this, so that you can set the requirements in UI, and it gives you the URL of the image.

No more spending hours on searching throwaway images!!



来源:https://stackoverflow.com/questions/33327127/dummy-image-placeholder-for-webpage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!