Cửa sổ bật lên 5

        
            

        
        

Sign in

×

Your email

Your password

Forgot Password?

Sign in

or Sign in with:

Not a member? Sign Up

Launch modal Login Form

        
            

        .form-elegant .font-small {
          font-size: 0.8rem; }

      .form-elegant .z-depth-1a {
          -webkit-box-shadow: 0 2px 5px 0 rgba(55, 161, 255, 0.26), 0 4px 12px 0 rgba(121, 155, 254, 0.25);
          box-shadow: 0 2px 5px 0 rgba(55, 161, 255, 0.26), 0 4px 12px 0 rgba(121, 155, 254, 0.25); }

      .form-elegant .z-depth-1-half,
      .form-elegant .btn:hover {
          -webkit-box-shadow: 0 5px 11px 0 rgba(85, 182, 255, 0.28), 0 4px 15px 0 rgba(36, 133, 255, 0.15);
          box-shadow: 0 5px 11px 0 rgba(85, 182, 255, 0.28), 0 4px 15px 0 rgba(36, 133, 255, 0.15); }

      .form-elegant .modal-header {
          border-bottom: none; }

      .modal-dialog .form-elegant .btn .fab {
          color: #2196f3!important; }

      .form-elegant .modal-body, .form-elegant .modal-footer {
          font-weight: 400; }

      
        
    

        
            
            
            Primary
            Secondary
            Success
            Danger
            Warning
            Info
            Light
            Dark

            
            

A simple primary alert with an example link. Give it a click if you like.

A simple secondary alert with an example link. Give it a click if you like.

A simple success alert with an example link. Give it a click if you like.

A simple danger alert with an example link. Give it a click if you like.

A simple warning alert with an example link. Give it a click if you like.

A simple info alert with an example link. Give it a click if you like.

A simple light alert with an example link. Give it a click if you like.

A simple dark alert with an example link. Give it a click if you like.

        
            
            const triggers = [
              'primary',
              'secondary',
              'success',
              'danger',
              'warning',
              'info',
              'light',
              'dark',
            ];
            const basicInstances = [
              'alert-primary',
              'alert-secondary',
              'alert-success',
              'alert-danger',
              'alert-warning',
              'alert-info',
              'alert-light',
              'alert-dark',
            ];

            triggers.forEach((trigger, index) => {
              let basicInstance = mdb.Alert.getInstance(document.getElementById(basicInstances[index]));
              document.getElementById(trigger).addEventListener('click', () => {
                basicInstance.show();
              });
            });
          
        
    

Bootstrap 5 có cần popper không?

Nhiều thành phần của chúng tôi yêu cầu sử dụng JavaScript để hoạt động. Cụ thể, chúng yêu cầu plugin JavaScript và Popper của riêng chúng tôi .

Làm cách nào để tạo cửa sổ bật lên bằng Bootstrap?

Để kích hoạt cửa sổ phương thức, bạn cần sử dụng nút hoặc liên kết. Sau đó bao gồm hai thuộc tính data-*. data-toggle="modal" mở cửa sổ phương thức . data-target="#myModal" trỏ đến id của phương thức .

Làm cách nào để sử dụng cửa sổ bật lên Bootstrap 5?

Để tạo cửa sổ bật lên, bạn cần thêm thuộc tính data-bs-toggle="popover" vào phần tử . Trong khi đó, tiêu đề của popover và nội dung của nó sẽ hiển thị khi kích hoạt hoặc kích hoạt có thể được chỉ định bằng cách sử dụng thuộc tính title và data-bs-content tương ứng. Đây là đánh dấu tiêu chuẩn để thêm cửa sổ bật lên vào nút.

Làm cách nào để hiển thị phương thức trong Bootstrap 5?

Để đạt được hiệu quả tương tự, hãy sử dụng một số JavaScript tùy chỉnh. .
var myModal = tài liệu. getElementById('myModal') var myInput = tài liệu. .