7.10. Bootstrap5 message prompt box

发布时间 :2024-01-16 23:00:03 UTC      

Bootstrap 5 can easily implement an information prompt box.

Image0

The prompt box can use the ‘. alert’ class, followed by .alert-success , .alert-info , .alert- warning , .alert-danger , .alert-primary , .alert-secondary , .alert-light or .alert-dark classto implement:

7.10.1. Example

<div class="alert alert-success">
  <strong>success!</strong> You should read carefully <a href="#"
class="alert-link">This message</a>.
</div>

Prompt box to add link

Add to the label of the link in the prompt box alert-link class to set links that match the color of the prompt box:

7.10.2. Example

 <div class="alert alert-success">
   <strong>success!</strong> You should read carefully <a href="#" class="alert-link">
This message</a>.
 </div>

Close the prompt box

We can click in the prompt box div add in .alert-dismissible class, and then add to the link on the close button class="btn-close" , data-dismiss="alert" class to set the closing operation of the promptbox.

7.10.3. Example

<div class="alert alert-success alert-dismissible">
  <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
  <strong>success!</strong> You should read carefully。
</div>

Prompt box animation

.fade and .show class is used to set the fade-out and fade-in effects of the prompt box when it is closed:

7.10.4. Example

<div class="alert alert-danger alert-dismissible fade show">

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.