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
                }
            });
        }
    });
  • 相关阅读:
    数据处理
    Linux常用命令
    三大特征--多态
    封装设计思想--继承
    容器:列表、元组、字典
    封装
    python面向对象,类和对象
    python参数
    js中if条件语句以及switch条件语句的使用
    js中class类的基本理解及相关知识(一)
  • 原文地址:https://www.cnblogs.com/liqiking/p/7118975.html
Copyright © 2011-2022 走看看