make image( not background img) in div repeat?

前端 未结 4 784
我寻月下人不归
我寻月下人不归 2021-02-19 02:03

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:

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-19 02:29

    You have use to repeat-y as style="background-repeat:repeat-y;width: 200px;" instead of style="repeat-y".

    Try 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;
    }
    

提交回复
热议问题