bootstrap 怎么设置字体颜色


本文摘自PHP中文网,作者藏色散人,侵删。

bootstrap设置字体颜色的方法:首先打开Bootstrap.css文件;然后搜索text-muted;接着查看默认情况下bootstrap给出的文本颜色样式;最后以基于这些样式进行修改和添加即可。

本教程操作环境:windows7系统,bootstrap3版本,Dell G3电脑。

相关教程推荐:《bootstrap教程》

先来看看bootstrap自定义的文本颜色是什么样的:

代码:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

<!DOCTYPE html>

<html>

  <head>

    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->

    <link rel="stylesheet" href="bootstrap.css">

    <title>Bootstrap 101 Template</title>

    <style>

          p{font-size:50px;}

    </style>

     

  </head>

  <body>

              <p>我是muted</p>

              <p>我是primary</p>

              <p>我是success</p>

              <p>我是info</p>

              <p>我是warning</p>

              <p>我是danger</p>         

    <script src="jquery.js"></script>

    <script src="bootstrap.js"></script>

  </body>

</html>

显示效果:

阅读剩余部分

相关阅读 >>

bootstrap 不显示图标怎么办

bootstrap怎么实现自适应高度

bootstrap-table 表格行内编辑实现

bootstrap的优点和缺点是什么?

bootstrap 输入框只读的设置方法

bootstrap表单怎么提交信息

angular怎么集成bootstrap4?方法介绍

深入浅析bootstrap中的自动定位浮标

bootstrap 怎么添加关闭按钮

bootstrap well是什么

更多相关阅读请进入《bootstrap》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...