jQueryのコード:私はモーダル中央揃えするにはどうすればよいjQuery Modalを垂直方向に中央に配置する方法は?
function thumb(id,ths) {
if (<?=$loggedin?>) {
$.post(base_url+"index.php/myad/addthumbs", {uniqueid:id});
$(ths).addClass("red");
} else {
_ths=$(ths);
var number = Math.floor(Math.random()*90000) + 10000;
$("#captcha").attr("data-id",id);
$("#captcha").text(number);
$("#pop").modal("show");
}
}
?私を助けて、事前に感謝してください。
私はgoogleとstackoverflowで解決策を見つけましたが、純粋なjqueryでビルドすると、ブートストラップベースのモーダルについての質問があります。
#pop {
position:fixed;
top:50%;
left:50%;
}
はその後揃える:
このリンクも参照してください:https://codepen.io/dimbslmh/full/mKfCc – Vijai