我正在尝试使用以下代码在我的应用程序中创建 TOS 协议(protocol)字段:
<ion-checkbox style="text-align:center" ng-model="signup.tospp">I agree to the <a href="../man/TOS">Terms of Service</a></ion-checkbox>
但我不知道为什么我没有被重定向到 TOS 文件(如元素所引用)。
那么这里出了什么问题呢?有可能解决这个问题吗?
最佳答案
最后,在查看以下解决方案后:https://forum.ionicframework.com/t/ion-checkbox-with-an-external-link/25335 .
我能够使用以下代码解决我的问题:
-CSS:
.item-checkbox .checkbox {
right: auto !important;
}
-HTML:
<div style="text-align:center" class="item item-checkbox">
<label class="checkbox">
<input ng-model="data.tospp" type="checkbox">
</label>
I agree to the <a ng-click="tos()" target="_blank">Terms of Service</a>
</div>
关于html - ionic : Unable to click into <a> element inside <ion-checkbox>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37470603/