瀑布流布局
- 父容器相对定位,成员绝对定位
- 利用
top与left属性控制位置
- 利用
- 记录每一列的高度
- 每次新增加成员时找到高度最低的那个将成员置于其下方
- 一些细节
- 一次性加载供展示
- flex布局
flex-direction:columnflex-wrap:wrap
- flex布局
- 动态插入数据
- 一次性加载供展示
大约 3 分钟
top与left属性控制位置flex-direction:columnflex-wrap:wrap大概思路
flex实现图片水平布局position的绝对定位与相对定位实现轮播图overflow: hidden;将其他图片隐藏js实现
css实现
animate。 有一定限制deploy.sh #!/usr/bin/env sh
# 确保脚本抛出遇到的错误
set -e
# 生成静态文件
npm run build
# 进入生成的文件夹
cd docs/.vuepress/dist
# 如果是发布到自定义域名
# echo 'www.yourwebsite.com' > CNAME
git init
git add -A
git commit -m 'deploy'
# 如果你想要部署到 https://USERNAME.github.io
git push -f git@github.com:USERNAME/USERNAME.github.io.git master
# 如果发布到 https://USERNAME.github.io/<REPO> REPO=github上的项目
# git push -f git@github.com:USERNAME/<REPO>.git master:gh-pages
cd -
shinoimg.yyshino.top
