Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript

Cursor วางผิดที่ใน modal เมื่อใช้ autofocus ใน Internet Explorer

เพื่อแก้ปัญหานี้ ใช้:

.modal.fade {
  transition: opacity .3s linear;
}

อีกวิธี บังคับให้ modal fade in โดยไม่ slide:

windowClass: 'modal fade in'