bootstrap的text-muted和text-danger

来源:互联网 发布:java面向 编辑:程序博客网 时间:2024/04/28 04:15

1、和修改的版本对比

    2.3版本                                 3.0版本

.muted.text-muted.text-error.text-danger这些class通过颜色来表示强调。也可以应用于链接,当鼠标盘旋于链接上时,其颜色会变深,就像默认的链接样式。

2、实验代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    <link rel="stylesheet" href="dist/css/bootstrap.css">    <script type="text/javascript" src="dist/js/jquery.js"></script>    <script type="text/javascript" src="dist/js/bootstrap.js"></script><title>无标题文档</title></head><body style="margin:200px"><div class="container">    <p class="text-muted">这个是text-muted属性的强调色!</p>        <p class="text-primary">这个是text-primary属性的强调色!</p>        <p class="text-success">这个是text-success属性的强调色!</p>        <p class="text-info"> 这个是text-info属性的强调色!</p>        <p class="text-warning">这个是text-warning属性的强调色!</p>        <p class="text-danger">这个是text-danger属性的强调色!</p>    </div></body></html>

3、效果图:





原创粉丝点击