小编Nad*_*han的帖子

如何正确对齐bootstrap表单按钮?

请告诉我如何使用bootstrap将此表单"登录"按钮对齐.我厌倦了使用拉右课.但调整大小后我的按钮位置不正确.

<div role="form">
    <div class="form-group">
        <label>Username</label>
        <input type="text" class="form-control"/>
    </div>

    <div class="form-group">
        <label>Password</label>
        <input type="password" class="form-control"/>
    </div>

    <div class="checkbox">
        <label>
            <input type="checkbox"> Remember Me
        </label>
    </div>

    <button class="btn-info btn">Log in</button>                            
</div>
Run Code Online (Sandbox Code Playgroud)

css css3 twitter-bootstrap

19
推荐指数
2
解决办法
7万
查看次数

Jquery - 选择空文本输入并为它们添加边框

我想为空文本输入字段添加边框.所以我写了下面的代码.但它没有用.所以我使用警告框来了解选择了多少选择器.但它返回0.我错了什么?

 $("input[type=submit]").click(function(){
       var empty = $('input:text[value=""]');
       alert(empty.length);

       if(empty.length >0){

           $("form").effect("shake",{
               times:3,
               distance : 50         

           },450,function(){
           $('input:text[value=""]').each(function(){
              $(this).css("border","1px solid red"); 
           });
           });



           return false;
       }

   });
Run Code Online (Sandbox Code Playgroud)

jquery jquery-ui

3
推荐指数
1
解决办法
1332
查看次数

XAMPP服务器上的MySQL无法启动。

我正在尝试启动mysql服务器,但它给出以下错误日志。我试图更改端口号。但这不值得

2014-09-26 09:31:23 3880 [Note] Plugin 'FEDERATED' is disabled.
2014-09-26 09:31:23 f34 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2014-09-26 09:31:23 3880 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-09-26 09:31:23 3880 [Note] InnoDB: The InnoDB memory heap is disabled
2014-09-26 09:31:23 3880 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-09-26 09:31:23 3880 [Note] InnoDB: Compressed …
Run Code Online (Sandbox Code Playgroud)

mysql xampp

3
推荐指数
2
解决办法
1727
查看次数

标签 统计

css ×1

css3 ×1

jquery ×1

jquery-ui ×1

mysql ×1

twitter-bootstrap ×1

xampp ×1