实际上,我正在尝试在单个行内创建一个表格,一个小型动画加载器将动态地出现在 Laravel Blade 中,如果我在行内单击,动画加载器将显示在特定行中心点内。但是,当我单击行内部时,动画加载器显示在表标题中,这是我想要解决问题的主要问题,现在我面临着解决此问题的问题。我该如何解决这个问题请帮助我?
$('.accordian-body').on('show.bs.collapse', function () {
$(this).closest("table")
.find(".collapse.in")
.not(this)
.collapse('toggle')
})
function getVariation(){
$.ajax({
type: "post",
url: "{{url('get-ebay-variation')}}",
data: {
"_token" : "{{csrf_token()}}",
},
beforeSend: function () {
$('#product_variation_loading').show();
},
complete: function () {
$('#product_variation_loading').hide();
}
})
}
.variation_load {
position: fixed;
width: 100%;
display: flex;
align-items:center;
justify-content: center;
z-index: 999;
}
.variation_load_tr{
position: relative;
}
.variation_load{
position: absolute;
}
.spin_loading {
display: flex;
}
.spin_loading .dot {
position: relative;
width: 2em;
height: 2em;
margin: 0.8em;
border-radius: 50%;
}
.spin_loading .dot::before {
position: absolute;
content: "";
width: 100%;
height: 100%;
background: inherit;
border-radius: inherit;
animation: wave 2s ease-out infinite;
}
.spin_loading .dot:nth-child(1) {
background: #7ef9ff;
}
.spin_loading .dot:nth-child(1)::before {
animation-delay: 0.2s;
}
.spin_loading .dot:nth-child(2) {
background: #89cff0;
}
.spin_loading .dot:nth-child(2)::before {
animation-delay: 0.4s;
}
.spin_loading .dot:nth-child(3) {
background: #4682b4;
}
.spin_loading .dot:nth-child(3)::before {
animation-delay: 0.6s;
}
.spin_loading .dot:nth-child(4) {
background: #0f52ba;
}
.spin_loading .dot:nth-child(4)::before {
animation-delay: 0.8s;
}
.spin_loading .dot:nth-child(5) {
background: #000080;
}
.spin_loading .dot:nth-child(5)::before {
animation-delay: 1s;
}
@keyframes wave {
50%, 75% {
transform: scale(2.5);
}
80%, 100% {
opacity: 0;
}
}
尚方宝剑之说
相关分类