如何使标签标题平滑滚动?

时间:2019-01-17 08:18:39

标签: javascript

我正在建立一个网站,希望滚动标题。我拥有的当前代码可以解决问题,但并不顺利。

class JobListView(LoginRequiredMixin, generic.TemplateView):
    template_name = 'admin/jobs/job.html'

    def get(self, request, *args, **kwargs):
        context = super(JobListView, self).get_context_data(**kwargs)

        company_name = self.request.user.userprofile.user_company
        jobs = Jobs.objects.exclude(job_is_deleted = True).filter(job_company=self.request.user.userprofile.user_company)
        form = JobSearchForm()

        return render(request, self.template_name, {'form': form, 'jobs': jobs})

    def post(self, request, *args, **kwargs):

        form = JobSearchForm(request.POST)
        if form.is_valid():
            status = form.cleaned_data['status']
            print (status)

        return HttpResponseRedirect('/useradmin/job/')

当前,选项卡中的滚动有效,但确实抖动/笨拙且不平滑。我希望使它顺利。

0 个答案:

没有答案