- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 VSCode创建React项目
1、 打开Teriminal命令行,安装react的脚手架create-react-app yarn global add create-react-app 2、创建项目命令 create-react-app demo 3、开启项目命令 cd demo yarn start 或 npm start 4、效果如下:
2020-09-28 10:44:01
1836
3
转载 table中实现div完全填充td
转载:table中实现在div中填充td table布局中,如果需要在一个td中间放置其他元素以达到完全填充的效果,可以将td中的元素宽度与高度都设置为100%。但是如果一个tr中存在多个td,其中一个td的高度由于可视区域变窄/自动换行等原因 被撑开之时,其他td的高度并不会被撑开。 可以看到左侧tr内部被显示的内容撑开,而右侧并没有被撑开,还是保持原先高度,导致不美观。 解决办法如下: 为td设置1px的高度 td { height: 1px; } 为td内填充的元素设置100%的高度 td &g
2020-07-20 19:47:57
4593
1
原创 React 自定义上传头像到 OSS获取url
实现原理: 给input加ref,然后在你自定义样式的标签上面加点击事件,触发input的点击事件。 <div className={styles.avatar_content}> <span className={styles.avatar_text}>头像:</span> <div className={styles.avatar_contain_bg} onMouseOver={handleMouseOver} onMouseOut={h
2020-06-22 21:33:44
747
原创 Android自定义View: 绘制26个字母
首先在values中创建attrs.xml,并加入如下代码,自定义属性: <declare-styleable name="CustomBar"> <attr name="textColor" format="color"/> <attr name="selectColor" format="color"/> </declare-styleable> 2.自定义CustomBar 继承View: public class CustomBar..
2020-06-20 12:22:02
506
原创 字体会随着ViewPager滚动变化颜色的Tablayout控件。
效果图 app项目中build.gradle添加: implementation 'implementation 'com.yayaG.colorTrackTabLayout:colortracklayout:1.0.0'' 在主项目中的build.gradle添加 maven { url 'https://dl.bintray.com/wangjinya/maven' } allprojects { repositories { google()
2020-06-07 18:03:17
487
原创 安卓仿IOS SwitchButton,增加效果体验
效果图 引入依赖 App依赖: app项目中build.gradle添加: implementation 'com.yayaG.iosSwitchButton:iosswitchbutton:1.0.3' 在主项目中的build.gradle添加 maven { url 'https://dl.bintray.com/wangjinya/maven' } allprojects { repositories { google() jce
2020-06-06 10:45:52
612
1
原创 React Native 软键盘存在TextInput,输入框有焦点情况下需要点击两次才可触发事件-解决
在外层 添加ScrollView,增加属性。 keyboardShouldPersistTaps={'handled'} <ScrollView keyboardShouldPersistTaps={'handled'} contentContainerStyle={{height: '100%'}}> <View> <TextInput ..../> </View> </ScrollView> 就可以解决问题。 如果使用 属性为alw
2020-06-02 11:13:48
1598
springmvc-spring-mybatis 所需全部jar包
2018-11-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅