小编Dhi*_*raj的帖子

禁用的引导类和禁用的属性之间的区别

嗨朋友我正在使用禁用类以及禁用属性如下,但我不知道两者之间的基本区别,当我们必须使用类和何时使用属性请清除我的疑问我在我的代码中使用按钮,我想禁用它,这将是使用禁用类或禁用属性的最佳方法

    <button class="btn btn-primary disabled" type=" button"/>
    disabled="disabled"
Run Code Online (Sandbox Code Playgroud)

css html5 twitter-bootstrap

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

html页面运行时如何默认使模式可见

我正在创建一个弹出div(模态),默认情况下会显示在屏幕上。但是,我在单击按钮时成功打开了它,但是我希望在运行HTML页面时默认将其打开。这是我的代码。

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Bootstrap Example</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
        <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    </head>
    <body>

        <div class="container">
            <h2>Modal Example</h2>
            <!-- Trigger the modal with a button -->
            <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>

            <!-- Modal -->
            <div class="modal fade" id="myModal" role="dialog">
                <div class="modal-dialog">

                    <!-- Modal content-->
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal">&times;</button>
                            <h4 class="modal-title">Modal Header</h4>
                        </div>
                        <div class="modal-body">
                            <p>Some text in the modal.</p>
                        </div>
                        <div class="modal-footer">
                            <button type="button" …
Run Code Online (Sandbox Code Playgroud)

html javascript jquery css3 twitter-bootstrap

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

Android:无法解决android studio中的依赖项

我正在使用Android Studio 1.4,我正在开发应用程序,我需要将数据存储到Couchbase Lite中.我在应用程序级别build.gradle编译'com.couchbase.lite:couchbase-lite-android:1.0.2'中添加依赖项如下

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    packagingOptions {
        exclude 'META-INF/ASL2.0'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    }


    defaultConfig {
        applicationId "com.couchbase.examples.couchdb"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:design:23.0.1'
    compile 'com.couchbase.lite:couchbase-lite-android:1.0.2'
}
Run Code Online (Sandbox Code Playgroud)

并且下面的代码是另一个build.grade,其中我添加了以下代码:

 repositories {
        jcenter()
        maven {
            url "http://files.couchbase.com/maven2/"
        }
Run Code Online (Sandbox Code Playgroud)

但问题是,当我在android studio中点击"与gradle文件同步项目选项"时,我收到错误.错误是:

Failed to resolve:com.couchbase.lite:couchbase-lite-android:1.0.2
Run Code Online (Sandbox Code Playgroud)

android github gradle couchbase build.gradle

2
推荐指数
1
解决办法
1353
查看次数

我如何使用两个类的悬停属性

我有两个css课程

    .circle-btn{
    }
    .circle-btn-medium{
    }
Run Code Online (Sandbox Code Playgroud)

无论两个类都有自己的属性.但是在悬停属性时我想为两者使用相同的背景颜色.

我找到的一个解决方案是如何单独使用悬停属性,如下所示

.circle-btn:hover
{
    background-color:#39C11E;
}
.circle-btn-medium:hover
{
    background-color:#39C11E;
}
Run Code Online (Sandbox Code Playgroud)

因此,不是单独使用悬停属性,是否可以同时使用此属性与不同的类,以便我可以优化我的编码?

css html5 twitter-bootstrap

0
推荐指数
1
解决办法
91
查看次数