例如,可以使用标签包裹一个段落的文本。 在包裹文本的标签上添加text-white类。这个类将文本颜色更改为白色。 以下是一个示例代码: 代码语言:html 复制 <!DOCTYPEhtml>Bootstrap Text Color Example这是一段文本,将其颜色更改为白色。 在上述示例中,我们使用了Bootstrap的...
使用.text-*将文本设置成指定的颜色,比如: .text-success; 也可以.text-*-50降色【只有白色和黑色才可以设 置 : white 和 black !】 使用.text-*也可以实现悬停和焦点的超链接样式【a标签】,white和muted 这样个颜色不支持! 列出颜色:【来之菜鸟教程】 代表指定意义的文本颜色 柔和的文本。 重要的文本。
使用.text-*将文本设置成指定的颜色,比如: .text-success; 也可以.text-*-50降色【只有白色和黑色才可以设 置 :white 和 black!】 使用.text-*也可以实现悬停和焦点的超链接样式【a标签】,white和muted 这样个颜色不支持! 列出颜色:【来之菜鸟教程】 代表指定意义的文本颜色柔和的文本。重要的文本。执行成功...
与上下文文本颜色类类似,可以轻松地将元素的背景设置为任何上下文类。背景实用程序不设置color,因此在某些情况下您需要使用.text-*实用程序。 .bg-primary .bg-secondary .bg-success .bg-danger .bg-warning .bg-info .bg-light .bg-dark .bg-white ...
text-white-50 背景颜色 与text文字类颜色class定义相同,链接元互会在hover状态时变暗。背景色不要设置color样式, 尽可能使用.text-*通用CSS类。 背景颜色 bg-primary bg-secondary bg-success bg-danger bg-warning bg-info bg-light bg-dark bg-white ...
与text文字类颜色class定义相同,链接元互会在hover状态时变暗。背景色不要设置color样式, 尽可能使用.text-*通用CSS类。 .bg-primary .bg-secondary .bg-success .bg-danger .bg-warning .bg-info .bg-light .bg-dark .bg-white .bg-transparent
可以设置文本颜色透明度为 50% ,使用 .text-black-50 或 .text-white-50 类: 背景颜色 提供背景颜色的类有: .bg-primary, .bg-success, .bg-info, .bg-warning, .bg-danger, .bg-secondary, .bg-dark 和 .bg-light。
color: white; font-size: 100%; } .bootstrap-tagsinput .tag [data-role="remove"] { margin-left: 8px; cursor: pointer; } .bootstrap-tagsinput .tag [data-role="remove"]:after { content: "x"; padding: 0px 2px; } .bootstrap-tagsinput .tag [data-role="remove"]:hover { ...
.ztree * { padding: 0; margin: 0; font-size: 14px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif }.ztree { margin: 0; padding: 5px; color: #333 }.ztree li { padding: 0; margin: 0; list-style: none; line-height: 17px; text-align: left; white-space: ...
Color .text-primary .text-secondary .text-success .text-danger .text-warning .text-info .text-light .text-dark .text-muted .text-white .text-primary.text-secondary.text-success.text-danger.text-warning.text-info.text-light.text-dark.text-muted.text-white Contextual text...