复选框标签中的可点击链接

时间:2020-10-06 09:32:24

标签: html bootstrap-4

我使用Bootstrap制作了此表单,并添加了一个用于隐私的复选框。 但是我的链接不可点击:

<div class="row">
  <div style="margin: auto; margin-bottom: 20px; font-size: 12px; text-align: justify;">
    <div class="custom-control custom-checkbox col-lg">
      <input name="privacy" type="checkbox" class="custom-control-input" id="privacy" required>
      <label class="custom-control-label" for="privacy">
        I have read the <span><a class="privacy" href="https://www.example.com">privacy policy</a></span>
        and consent to the storage of my data in your archive as
        established by the European regulation for the protection of personal data n. 679/2016,
        GDPR.
      </label>
    </div>
  </div>
</div>

0 个答案:

没有答案