首页 > 解决方案 > 复选框标签的可点击链接

问题描述

我使用 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>

标签: htmlbootstrap-4

解决方案


推荐阅读