Get the bootstrap warning box in one trick

醉折花枝作酒筹
Release: 2021-03-31 18:00:34
Original
2047 people have browsed it

The warning box can flexibly provide some predefined information to provide users with some feedback content and tips. Today we will introduce the bootstrap warning box, which has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

Get the bootstrap warning box in one trick

Warning box

Putting text and an optional button together is a warning box. To use the warning box, you must Set.alert, there are other classes to choose from. Currently provides success, message, warning, or danger.

   
Copy after login

Get the bootstrap warning box in one trick

Can close the warning box

Add.alert-dismissible to the warning boxclass and a close button, it becomes a warning box that can be closed. In order to ensure that this operation is feasible, you need to add thedata-dismiss="alert"attribute to the 警告! 本次操作有风险,是否继续?

Copy after login

Get the bootstrap warning box in one trick

Links in warning

.alert-linkCan be set for links with The same color as the current alert box.

I won’t demonstrate this this time. You can’t see it in the pictures. It’s better to practice it yourself.

Recommended learning:Bootstrap video tutorial

The above is the detailed content of Get the bootstrap warning box in one trick. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Previous article:Take you to understand the bootstrap drop-down menu in three minutes Next article:Learn more about the pagination component in Bootstrap
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Latest Issues
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!