background-image in div – Google indexing?

后端 未结 3 494
慢半拍i
慢半拍i 2021-01-15 20:19

I\'ve a list of empty divs and dynamically inserting a background image – so at first, their background-image: url(); property is completely empty. With some event, it\'s ba

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-15 20:37

    Googlebot (like most spiders) does not attempt to run javascript, so the only things it will index are the things appearing in the original HTML downloaded from the server. Any subsequent manipulation by JQuery just won't happen.

    Also - most spiders don't index CSS either so background-images will also be ignored for that reason.

提交回复
热议问题