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