make image( not background img) in div repeat?

前端 未结 4 739
我寻月下人不归
我寻月下人不归 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:37

    It would probably be easier to just fake it by using a div. Just make sure you set the height if its empty so that it can actually appear. Say for instance you want it to be 50px tall set the div height to 50px.

    And in your style sheet just add the background and its properties, height and width, and what ever positioning you had in mind.

提交回复
热议问题