Yuan's Blog

砥砺前行

git基本命令

随时补充


小结

随时更新


料汇总

随时更新


Swift

随时更新


十六进制色值透明度

十六进制色值透明度

十六进制色值透明度 0% (00) 1% (03) 2% (05) 3% (08) 4% (0A) 5% (0D) 6% (0F) 7% (12) 8% (14) 9% (17) 10% (1A) 11% (1C) 12% (1F) 13% (21) 14% (24) 15% (26) 16% (29) 17% (2B) 18% (2E) 19% (30) 20% (33) 21% (36...

渐变边框

渐变边框

渐变边框 +(CAGradientLayer *)setGradientBorder:(UIView *)dealView alphaBg:(BOOL)alphaBg borderWidth:(int)borderWidth lineWidth:(CGFloat)lineWidth { // 透明背景 if(alphaBg){ dealView.backgr...

UILabel文字渐变

UILabel文字渐变

- (void)drawRect:(CGRect)rect { //NSLog(@"====>%f======%f====%@",rect.size.width,rect.size.height,self.text); CGSize textSize = [self.text sizeWithAttributes:@{NSFontAttributeN...

去除输入框背景色

input使用选择数据室带有背景色

去除input选中数据的背景色 input:-internal-autofill-previewed, input:-internal-autofill-selected { -webkit-text-fill-color: black; transition: background-color 1000s ease-out 0.5s; } 出处

长按事件

长按事件和滑动事件同时发生时,阻止长按事件

当元素既存在滑动事件、又存在长按事件的时候,阻止长按事件的触发 <view class="chat-list-item" @longpress="longPress()" @touchend="touchend()" @touchmove="touchmove()"> </view> <script> export default { ...

海报

Uniapp绘制海报

绘制海报 <view class="poster-test" :style="'height:'+(posterHeight+20)+'px;'"> <canvas canvas-id="poster-qr" id='sss' :style="'width:'+posterWidth+'px;height:'+posterHeight+'px;'">&l...

TP5加Apache或者Nginx

本地开发MAMP配置

MAMP配置 版本:6.8.1 数据库 数据库:MySQL Apache配置【推荐】 伪静态 放到Additional parameters for <Directory> directive:输入框下 <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine o...

GitHub-SSH

Connection closed by remote host

Connection closed 报错如下: kex_exchange_identification: Connection closed by remote host Connection closed by 127.0.0.1 port 7890 fatal: Could not read from remote repository. Please make sure you ...

CSS画三角符号

CSS画三角符号

画三角 向上 .item-arrow-up { width: 0; height: 0; border: 15px solid transparent; border-bottom: 20px solid rgba(58, 106, 255, 0.40); } 向下 .item-arrow-down { width: 0; heigh...

Uniapp更换字体

Uniapp更换字体

跟随系统 在App.vue设置body如下: body { font-family: Helvetica Neue, Helvetica, sans-serif; } 设置自定义字体 下载字体库到本地 远程字体,H5生效,app不生效 在App.vue中声明字体 @font-face { font-family: 'pht55'; s...

Mac新版本软件安装

Mac新版本软件安装

Mac OS Catalina之后 已损坏的解决方案 sudo xattr -d com.apple.quarantine /Applications/xxxx.app 报错:Either you did not provide the necessary admin credentials or the MAMP PRO package could not be initialize...

获取jks的SHA1

获取jks的SHA1

keytool -list -v -keystore yunbao.jks 如果报错如下:请前往下载Java The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java....

JS生成唯一标识

JS生成唯一标识

方式一 // 添加唯一编码 function fn_Guid() { function s4() { return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); } return (s4() +s4() +"-" +s4() +"-" +...

一套代码关联多个仓库

一套代码同时提交到多个仓库

创建文件夹 cd进入新建的文件夹 git init 添加第一个仓库地址 git remote add 名称(origin) 地址1 添加第二个仓库地址 git remote set-url --add 名称(origin) 地址2 罗列关联的仓库地址 git remote -...

大小限制

php.ini

php上传大小限制 服务器根目录/usr/local/php/etc/php.ini 里 post_max_size 重启: systemctl restart php-fpm 日志 // 1.创建文件夹【cd到目标目录 ==> mkdir rk】 ~/Desktop/ybkj/wwwybkjcomlocal/bendi.yunbaokj.com/data/runtime % ...

图片自适应

图片自适应css

图片自适应 <div class="img-box"> <image src="@static/imgs/600x200.jpg"> </image> </div> <div class="img-box"> <image src="@static/imgs/500x200.jpg"> </im...