我是离子2的新手,我试图插入一个图像,但我没有意识到真正的路径.在文件app/pages/getting-started/getting-started.html中
<ion-content padding class="getting-started">
<ion-card>
<ion-card-content>
<img src="img1.png" alt="">
<img src="img/img1.png" alt="">
<img src="../img/img1.png" alt="">
</ion-card-content>
</ion-card>
</ion-content>
Run Code Online (Sandbox Code Playgroud)
创建一个文件夹app/img并在其中插入一个img1.png文件.和app/pages/getting-started文件夹中的相同文件.
所以,这应该很容易,但在离子文档中找不到任何内容.
谢谢
听起来很简单,如何插入下一行或换行符或换行符,如
og:description中的\n或\n.
我需要这条线
<meta property="og:description" content="here goes the description. and here goes the next line"/>
Run Code Online (Sandbox Code Playgroud)
像这样的另一个
<meta property="og:description" content="here goes the description.
and here goes the next line"/>
Run Code Online (Sandbox Code Playgroud)
任何的想法?
我为Android和ios开发了一个Ionic应用程序,但现在我需要使用相同的智能电视应用程序代码,生成一个兼容Android手机,平板电脑和电视的apk.
三星提供了一个带有eclipse和模拟器的SDK但是在导入android项目之后它会在角文件中返回很多错误
令牌"finally"上的语法错误,标识符预期ng-cordova.js
赋值的左侧必须是变量ng-cordova.js
赋值的左侧必须是变量angular.min.js
赋值的左侧必须是变量angular.js
重复案例angular-ui-router.min.js
令牌"finally"上的语法错误,标识符期望angular.js
令牌"finally"上的语法错误,标识符预期ng-cordova.js
赋值的左侧必须是变量angular.js
重复案例angular-ui-router.min.js
赋值的左侧必须是变量ionic.bundle.min.js
赋值的左侧必须是变量angular.min.js
重复案例angular-ui-router.min.js
我可以使用相同的项目来构建android tv/samsung智能电视应用吗?
先感谢您.
我需要同时播放6个视频作为不同div的背景,但是在IOS和ANDROID平台上.我正在开发一款离子应用程序.
我找到了一个与网络完美配合的解决方案,但是当我构建它时,它就像我想象的那样工作:我用作背景的每个视频都只是全屏播放.
这里有一些代码:
.bg-vid {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: 100%;;
z-index: -100;
-webkit-transform: translateX(-50%) translateY(-50%);
-moz-transform: translateX(-50%) translateY(-50%);
-ms-transform: translateX(-50%) translateY(-50%);
-o-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
background: url(http://www.w3schools.com/tags/movie.mp4) no-repeat;
background-size: cover;
}
Run Code Online (Sandbox Code Playgroud)
<div>
<video autoplay muted loop class="bg-vid">
<source src="http://www.w3schools.com/tags/movie.mp4" type="video/webm">
<source src="http://www.w3schools.com/tags/movie.mp4" type="video/mp4">
</video>
</div>
Run Code Online (Sandbox Code Playgroud)
希望可以有人帮帮我.
我在缓存中遇到了这个连续错误。有权限的东西,但我不知道发生了什么。在我的本地环境中,当我去时,php bin/console cache:clear -e=dev
它会返回给我这个
[Symfony\Component\Filesystem\Exception\IOException]
Failed to remove file "/project/var/cache/de~/pools/ORsqbHaOKl/L/K/iZULk48B-k00dzIKC2qg": unlink(/project/var/cache/de~/pools/ORsqbHaOKl/L/K/iZULk48B-k00dzIKC2qg): Permission denied.
Run Code Online (Sandbox Code Playgroud)
所以我需要先制作 a chmod -R 777 var/
,然后再次清除缓存并且它可以工作。但是当我运行网站时,它返回给我
Failed to create "/project/var/cache/dev/tcpdf": mkdir(): Permission denied.
Run Code Online (Sandbox Code Playgroud)
所以我需要再次制作 chmod -R 777 var/
在没有擦除任何东西的生产服务器中,有时我会收到此错误
Warning: rename(C:\project\var\cache\prod/doctrine/orm/Proxies\__CG__AppBundleEntitySomeEntity.php.5a142ad84e8464.47105642,C:\project\var\cache\prod/doctrine/orm/Proxies\__CG__AppBundleEntitySomeEntity.php): Access is denied. (code: 5)
Run Code Online (Sandbox Code Playgroud)
vendor\doctrine\common\lib\Doctrine\Common\Proxy\ProxyGenerator.php 中的错误(第 309 行重命名())
$tmpFileName = $fileName . '.' . uniqid('', true);
file_put_contents($tmpFileName, $proxyCode);
@chmod($tmpFileName, 0664);
rename($tmpFileName, $fileName);
}
Run Code Online (Sandbox Code Playgroud)
本地环境:debian 9 生产环境:windows server 2008
在官方文档中说,这是第一步
$ composer require friendsofsymfony/user-bundle "~2.0"
这给了我这个错误
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install friendsofsymfony/user-bundle v2.1.2
- Conclusion: don't install friendsofsymfony/user-bundle v2.1.1
- Conclusion: don't install friendsofsymfony/user-bundle v2.1.0
- Conclusion: don't install friendsofsymfony/user-bundle v2.0.2
- Conclusion: don't install friendsofsymfony/user-bundle v2.0.1
- Conclusion: remove paragonie/random_compat v9.99.99
- Installation request for friendsofsymfony/user-bundle ~2.0 -> satisfiable by friendsofsymfony/user-bundle[v2.0.0, …
Run Code Online (Sandbox Code Playgroud) 我从奏鸣曲的第 4 版开始。3 效果很好,但第 4 版有很多变化。过了一会儿,我在这里找到了如何安装它,但它返回了下一个错误。
Problem 1
- sensio/generator-bundle v3.1.7 requires symfony/framework-bundle ~2.7|~3.0 -> satisfiable by symfony/framework-bundle[2.7.x-dev, 2.8.x-dev, 3.0.x-dev, 3.1.x-dev, 3.2.x-dev, 3.3.x-dev, 3.4.x-dev, v3.4.0, v3.4.1, v3.4.10, v3.4.11, v3.4.12, v3.4.13, v3.4.14, v3.4.2, v3.4.3, v3.4.4, v3.4.5, v3.4.6, v3.4.7, v3.4.8, v3.4.9] but these conflict with your requirements or minimum-stability.
- sensio/generator-bundle v3.1.6 requires symfony/framework-bundle ~2.7|~3.0 -> satisfiable by symfony/framework-bundle[2.7.x-dev, 2.8.x-dev, 3.0.x-dev, 3.1.x-dev, 3.2.x-dev, 3.3.x-dev, 3.4.x-dev, v3.4.0, v3.4.1, v3.4.10, v3.4.11, v3.4.12, v3.4.13, v3.4.14, v3.4.2, v3.4.3, v3.4.4, v3.4.5, v3.4.6, v3.4.7, …
Run Code Online (Sandbox Code Playgroud) 当我试图建立项目时
ionic build android
Run Code Online (Sandbox Code Playgroud)
或者特别添加此插件
$ ionic plugin add cordova-plugin-screen-orientation
Run Code Online (Sandbox Code Playgroud)
用许可证返回此问题
$ ionic plugin add cordova-plugin-screen-orientation
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
Fetching plugin "cordova-plugin-screen-orientation" via npm
Installing "cordova-plugin-screen-orientation" for android
ANDROID_HOME=/xxx/Android SDK/adt-bundle-mac-x86_64-20140702/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
Subproject Path: CordovaLib
Incremental java compilation is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> You have not accepted the license agreements of the following SDK components:
[Google Repository, …
Run Code Online (Sandbox Code Playgroud)