Home >Web Front-end >JS Tutorial >How to modify the default style of BootStrap popover? (code)
This article brings you how to modify the default style of BootStrap popover? (code), it has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
.popover { position: absolute; top: 0; left: 0; z-index: 1060; display: none; max-width: 276px; padding: 1px; font-size: 14px; font-weight: 400; line-height: 1.42857143; text-align: left; white-space: normal; background-color: #fff; -webkit-background-clip: padding-box; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0,0,0,.2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2); box-shadow: 0 5px 10px rgba(0,0,0,.2); }
The default style of the BootStrap popover popup box. If you need to modify the popup box style, you can customize the style to be modified in CSS, for example: padding is changed to 6px, background color is changed to black, and font color is changed to white
1 .popover{ 2 padding:6px; 3 background-color:#000; 4 color:#fff; 5 }
Related recommendations:
Code example of how to use css to modify the default style of the scroll bar
css to modify the drop-down list Example of select default style
The above is the detailed content of How to modify the default style of BootStrap popover? (code). For more information, please follow other related articles on the PHP Chinese website!