我选择了这个免费的bootstrap主题,我的问题是我想创建透明面板,但是当我opacity: 0.8;在面板中设置文本时,当然,变得透明,这不是我想要发生的事情.我尝试使用这个CSS代码,但看起来标题和正文后面仍然有一些东西,面板不透明.
.panel-transparent .panel-heading{
background: rgba(122, 130, 136, 0.2)!important;
}
.panel-transparent .panel-body{
background: rgba(46, 51, 56, 0.2)!important;
}
Run Code Online (Sandbox Code Playgroud)
编辑 - 示例HTML:
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Panel primary</h3>
</div>
<div class="panel-body">
Panel content
</div>
</div>
Run Code Online (Sandbox Code Playgroud) 我正在使用ng-click调用一个带有$ scope范围的参数的函数.不幸的是,不是从角度处理的参数或我得到此错误:
错误:[$ parse:syntax]语法错误:令牌':'不是从[:notification]开始的表达式[:notification]的第1列的主表达式.
导致错误的HTML代码段:
<div ng-click="goToNotif({{notification.id}})"></div>
Run Code Online (Sandbox Code Playgroud)
HTML代码段未从角度处理:
<div ng-click="goToNotif(notification.id)"></div>
Run Code Online (Sandbox Code Playgroud)
重要信息:notification从重复解析
<div(ng-repeat="notification in notifications")></div>
Run Code Online (Sandbox Code Playgroud) data-binding function angularjs ng-repeat angularjs-ng-click
我是使用phonegap进行开发的初学者.大约12个小时,我一直在尝试将AngularJS应用程序与phonegap连接,以便为Android开发移动应用程序.不幸的是,AngularJS似乎对我不起作用.这是我的github存储库的链接,我已经从wwwphonegap项目的文件夹中推送了所有代码.基本上我把所有链接到我的index.html文件,路由和控制器看起来似乎没问题.我以前做了几个angular.js应用程序,但总是使用node.js,所以这对我来说真的很新.很抱歉发布整个项目,但我一直在努力这个问题已经足够长,完全不知道问题出在哪里.我真的尽我所能......
我试图使用此插件在我的cordova应用程序中截取屏幕截图,但是发生了错误.我真的不知道错误是什么,因为我在我的Android智能手机和应用程序上测试它只是块.在浏览器中,出现此错误的情况也是如此:TypeError: Cannot read property 'save' of undefined其中"save"来自此代码:
navigator.screenshot.save(function(error,res){
if(error){
console.error(error);
}else{
console.log('ok',res.filePath);
}
});
Run Code Online (Sandbox Code Playgroud)
PS:也试过navigator.plugin.screenshot...,navigator.plugins.screenshot,
window.screenshot,window.plugin.screenshot和window.plugins.screenshot
PS2:我检查了插件是否安装cordova plugins在cordova CLI中,一切正常,插件存在于plugins文件夹中,适用于cordova版本> = 3.0.0而且我的是更新版本
但是当然,浏览器并没有真正加载插件,因为这个错误也出现在那里:Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:23273/www/cordova_plugins.json.没有截图,在我的智能手机上查看.
从google play的文档中我了解到,android:name在搜索和应用程序时这也很重要。我的应用程序称为“Bike Dice”,但仅在搜索为“BikeDice”(文件中的名称)时才会出现AndroidManifest.xml。我尝试将其更改为“Bike Dice”,这会破坏代码并且应用程序在启动时崩溃,但是当我尝试像在 google play 中那样更新它时,我发现它在搜索“Bike Dice”时首先出现。
所以我的问题是:是否有黑客或其他什么东西可以让你有两个单词 as android:name?
编辑:这是我的AndroidManifest.xml文件:
<?xml version='1.0' encoding='utf-8'?>
<manifest android:versionCode="102" android:versionName="0.1.2" android:windowSoftInputMode="adjustPan" package="com.dice.bike" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<application android:debuggable="false" android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:launchMode="singleTop" android:name="BikeDice" android:screenOrientation="portrait" android:theme="@android:style/Theme.Black.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:name="com.google.android.gms.ads.AdActivity" android:theme="@android:style/Theme.Translucent" />
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
Run Code Online (Sandbox Code Playgroud) android ×3
angularjs ×3
cordova ×3
css ×1
data-binding ×1
function ×1
google-play ×1
javascript ×1
ng-repeat ×1
opacity ×1
transparent ×1
xml ×1