Home>Article>Web Front-end> Get the bootstrap warning box in one trick

Get the bootstrap warning box in one trick

醉折花枝作酒筹
醉折花枝作酒筹 Original
2021-03-31 17:56:30 2054browse

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.

   

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 theelement.

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!

Statement:
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