zoukankan      html  css  js  c++  java
  • web端test

    <div class="btn-group" data-toggle="buttons">
    <label class="btn btn-primary">
    <input type="radio" name="options" id="option1"> 选项 1
    </label>
    <label class="btn btn-primary">
    <input type="radio" name="options" id="option2"> 选项 2
    </label>
    <label class="btn btn-primary">
    <input type="radio" name="options" id="option3"> 选项 3
    </label>
    </div>

    <div class="btn-group">
    <button type="button" class="btn btn-primary dropdown-toggle btn-xs" data-toggle="dropdown">
    原始
    <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu">
    <li><button type=button>功能</li>

    <li><a href="#">另一个功能</a></li>

    <li><a href="#">其他</a></li>

    <li><a href="#">分离的链接</a></li>
    </ul>
    </div>

    <!-- 模态框(Modal) --> <h2>模态框(Modal)插件事件</h2> <!-- 按钮触发模态框 --> <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">开始演示模态框</button> <!-- 模态框(Modal) --> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">模态框(Modal)标题</h4> </div> <div class="modal-body">点击关闭按钮检查事件功能。</div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> <button type="button" class="btn btn-primary">提交更改</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div> <!-- /.modal --> <script> $(function() { $('#myModal').modal('hide') }); </script> <script> $(function() { $('#myModal').on('hide.bs.modal', function() { alert('嘿,我听说您喜欢模态框...'); }) }); </script>

    $('#identifier').on('show.bs.modal', function () {
      // 执行一些动作...
    })
    $('#identifier').modal('show')

    $('#identifier').modal('hide')


    $(function () {
    $('button[data-target="#myModal"]').on('click',function (e) {
    var divid=$(e.target).parents("div").attr("id");
    alert(divid);
    })
    });
    提示:
    <a href="#" data-toggle="tooltip" data-placement="right" title="右侧的 Tooltip">右侧的 Tooltip</a>

    <button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="左侧的 Tooltip">左侧的 Tooltip
    </button>

     
    <table style="table-layout: fixed; XXX px">
        <tr>
              <td style="white-space: nowrap;text-overflow: ellipsis;overflow: hidden;" ></td>
        </tr>
    </table>

    table标签需要设定属性 table-layout: fixed;XXXpx;

    在要超出隐藏的td标签上设定属性  white-space: nowrap;text-overflow: ellipsis;overflow: hidden; 

    不要忘了给table加个宽度 

    ProgressManager.getInstance().run(new Task.Backgroundable(project, "Title"){
            public void run(@NotNull ProgressIndicator progressIndicator) {
    
                // start your process
    
                // Set the progress bar percentage and text
                progressIndicator.setFraction(0.10);
                progressIndicator.setText("90% to finish");
    
    
                // 50% done
                progressIndicator.setFraction(0.50);
                progressIndicator.setText("50% to finish");
    
    
                // Finished
                progressIndicator.setFraction(1.0);
                progressIndicator.setText("finished");
    
            }});
    

    If you need read some data from other thread you should use

    AccessToken token = null;
    try {
       token = ApplicationManager.getApplication().acquireReadActionLock();
                        //do what you need
    } finally {
       token.finish();
    }




    ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
        public void run() {
            ApplicationManager.getApplication().runReadAction(new Runnable() {
                public void run() {
                // do whatever you need to do
                }
            });
        }
    });
  • 相关阅读:
    php代码中注释的含义
    MySql-count(*)与count(id)与count(字段)之间的执行结果和性能分析
    mysql通配符进行模糊查询
    我的娃,我的宝贝
    Yii 2.0 query模式语法
    Yii 2.0版本调试输出SQL语句
    mysql高效率随机获取n条数据写法
    mysql语句中判断是否包含某字符串的方法
    应该让老婆多休息
    win10常用快捷键总结
  • 原文地址:https://www.cnblogs.com/liqiking/p/7118975.html
Copyright © 2011-2022 走看看