How to highlight searched queries in result page of Django template?

前端 未结 3 1195
太阳男子
太阳男子 2021-01-03 11:44

I have the following search query in views.py:

class SearchView(View):
    def get(self, request, *args, **kwargs):
        queryset = BlogPost.         


        
3条回答
  •  伪装坚强ぢ
    2021-01-03 12:12

    Try changing backgroud-color for the div in which search results are being appended like

    .link {
        background-color: yellow;
    }
    

提交回复
热议问题