/**
* How to use the hold.js
* @author Maple
* @zhuangbi
*/
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
div{margin:2px;}
</style>
<title>holder-demo</title>
</head>
<body>
<div style=" width:200px; background-color:#F9F">
<img src="holder.js/200x100">
</div>
<script src="holder.js"></script>
<script>
Holder.run({
themes: {
"simple":{
background:"#66FFCC",
foreground:"#000",
size:12
}
},
images: "#new"
})
</script>
</body>
</html>
最后发现,这货其实没那么高深,真的就只是一个占位的!!! 比较适用于鞠丽子的时候懒得找图片,弄个默认的~~