BootStrap3 图标glyphicon

BootStrap3 图标glyphicon目录官方地址 glyphicons 官方地址基类说明用法整体代码官方地址 https v3 bootcss com components glyphiconsgl 官方地址 http glyphicons com 基类 glyphicon 说明图标类只能应用在不包含任何文本内容或子元素的元素上 为了设置正确的内补 padding 务必在图标和文本之间添加一个空格

官方地址

https://v3.bootcss.com/components/#glyphicons

glyphicons官方地址

http://glyphicons.com/

基类

.glyphicon

说明

  1. 图标类只能应用在不包含任何文本内容或子元素的元素上。
  2. 为了设置正确的内补(padding),务必在图标和文本之间添加一个空格。

用法

<div class="container"> <button type="button" class="btn btn-default"> <span class="glyphicon glyphicon-align-left"> 
     span>  
      button> <button type="button" class="btn btn-default"> <span class="glyphicon glyphicon-align-right"> 
       span>  
        button> <button type="button" class="btn btn-default"> <span class="glyphicon glyphicon-align-center"> 
         span>  
          button> <button type="button" class="btn btn-default"> <span class="glyphicon glyphicon-align-justify"> 
           span>  
            button>  
             div> 
<div class="container"> <button type="button" class="btn btn-danger"> <span class="glyphicon glyphicon-remove"> 
     span> 删除  
      button> <button type="button" class="btn btn-info"> <span class="glyphicon glyphicon-edit"> 
       span> 编辑  
        button> <button type="button" class="btn btn-primary"> <span class="glyphicon glyphicon-user"> 
         span> 登录  
          button> <button type="button" class="btn btn-warning"> <span class="glyphicon glyphicon-thumbs-up"> 
           span> 
            button>  
             div> 

整体代码

 <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1">  
    <title>16图标 
     title>  
     <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">  
      
      
      
      head> <body style="background-color: #ccc;"> <pre class="pre-scrollable"> glyphicon图标官方地址: http://glyphicons.com/ 基类 .glyphicon 说明: 1. 图标类只能应用在不包含任何文本内容或子元素的元素上。 2. 为了设置正确的内补(padding),务必在图标和文本之间添加一个空格。  
       pre> <div class="container"> <button type="button" class="btn btn-default"> <span class="glyphicon glyphicon-align-left"> 
        span>  
         button> <button type="button" class="btn btn-default"> <span class="glyphicon glyphicon-align-right"> 
          span>  
           button> <button type="button" class="btn btn-default"> <span class="glyphicon glyphicon-align-center"> 
            span>  
             button> <button type="button" class="btn btn-default"> <span class="glyphicon glyphicon-align-justify"> 
              span>  
               button>  
                div> <p>  
                 p> <div class="container"> <button type="button" class="btn btn-danger"> <span class="glyphicon glyphicon-remove"> 
                  span> 删除  
                   button> <button type="button" class="btn btn-info"> <span class="glyphicon glyphicon-edit"> 
                    span> 编辑  
                     button> <button type="button" class="btn btn-primary"> <span class="glyphicon glyphicon-user"> 
                      span> 登录  
                       button> <button type="button" class="btn btn-warning"> <span class="glyphicon glyphicon-thumbs-up"> 
                        span> 
                         button>  
                          div>  
                          <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"> 
                           script>  
                           <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"> 
                            script>  
                             body>  
                              html> 
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/208002.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月19日 下午12:35
下一篇 2026年3月19日 下午12:36


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号