本文介绍了使图像(不是背景img)在div重复?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我试图重复一个图像在一个div,没有背景图像,但没有想到如何。I'm trying to repeat-y an image that's in a div and no background image but haven't figured how. Could you please point me to a solution?我的代码看起来像这样:My code looks like this:<div id="rightflower"><img src="/image/layout/lotus-dreapta.png" style="repeat-y; width: 200px;"/></div>推荐答案您可以使用 -y style =background-repeat:repeat-y; width:200px;You have use to repeat-y as style="background-repeat:repeat-y;width: 200px;" instead of style="repeat-y".请在图片代码中尝试此操作,或者您可以使用以下css作为divTry this inside the image tag or you can use the below css for the div.div_backgrndimg{ background-repeat: repeat-y; background-image: url("/image/layout/lotus-dreapta.png"); width:200px;} 这篇关于使图像(不是背景img)在div重复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-03 00:57