摘要:
1,普通的网页中: // 设置默认图片 <img src="http://res.spreadwin.com/gmc38PE.jpg" alt="" onerror="this.src='images/default.png';this.onerror=null"> this.onerror=nul 阅读全文
摘要:
JS代码中: /* * 打开分享微信弹窗 */ function openDialog () { visible = true; var dialogDom = document.getElementById('dialog') dialogDom.style.display = 'flex' di 阅读全文
摘要:
<div class="up"> <img class="bg" src="bg.png"/> </div> .up{ width: 100%; height: 100%; position: relative; display: flex; /*justify-content: center;*/ 阅读全文
摘要:
.parrent { display: flex; //元素设置成flex布局 flex-direction: column; //控制parrent的子元素排列方向 height: 100vh; //最外层设置为屏幕的高度100% } .son { display:flex; flex-direc 阅读全文
摘要:
效果:删除按钮在背景图的上层 <div class="parrent"> <img class="parrent_img"/> //背景图 <img class="parrent_dele" src="../img/delete.png"/> //删除按钮 </div> CSS: .parrent 阅读全文
摘要:
Mac: adb logcat -d >/Users/z/android_log.txt windows: adb logcat -d > c:/b.log 阅读全文
摘要:
app.gradle: android { defaultConfig { ... multiDexEnabled true } } dependencies { ... implementation ‘androidx.multidex:multidex:2.0.1’ } MyApplicatio 阅读全文
摘要:
https://www.jianshu.com/p/edce7af3691a 目录结构: 1、初始化node项目 在命令行输入:npm init 2、安装express 在命令行输入:npm install express 3、然后创建server.js文件 const express = requ 阅读全文
摘要:
https://blog.csdn.net/tu_bingbing/article/details/24143249 public class FramentTest2Activity extends ActionBarActivity { @Override protected void onCr 阅读全文
摘要:
https://www.jianshu.com/p/ef6cbf5ade71 方法一:11.25新建的项目 app的build.gradle下面: android { //只需要这样就行了 compileOptions { sourceCompatibility JavaVersion.VERSIO 阅读全文