“虚拟形象"网页占位符 [英] "Dummy Image" placeholder for webpage

查看:59
本文介绍了“虚拟形象"网页占位符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发网页/应用程序时,我通常没有预先准备好所有数据.有时我需要在某些地方放置虚拟文本和图像,以了解其外观的整体感觉.对于虚拟文本,我可以使用 Lorem Ipsum 来生成此类垃圾文本.但是我如何对图像做类似的事情?

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?

推荐答案

类似于 Lorem Ipsum,有这个:Lorem Pixel如果指定大小,这将为您的 html 生成占位符图像.该网站的网址遵循以下模式:http://lorempixel.com/[width]/[height]/[category(optional)]/[number(optional)]/

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)]/

一个例子是:400 x 200px 运动图像

如果您使用方括号,它会为此提供一个扩展,以便您可以在 UI 中设置要求,并为您提供图像的 URL.

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.

无需再花时间搜索一次性图片了!!

这篇关于“虚拟形象"网页占位符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆