background & background-image & border-image
2024-09-03 22:51:16
background & background-image & border-image
https://developer.mozilla.org/en-US/docs/Web/CSS/background
https://developer.mozilla.org/en-US/docs/Web/CSS/border-image
https://developer.mozilla.org/zh-CN/docs/Web/CSS/background
https://developer.mozilla.org/zh-CN/docs/Web/CSS/border-image
background & radius border
background color & view bug
https://codepen.io/xgqfrms/full/JQeqXQ
linear-gradient
https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient
https://codepen.io/xgqfrms/pen/WqEBLB
https://codepen.io/xgqfrms/pen/bPrymz
background-size
cover
https://developer.mozilla.org/zh-CN/docs/Web/CSS/background-size
.circle {
position: absolute;
width: 1.76rem;
height: 1.56rem;
line-height: 1.56rem;
/* background: url("../../images/guide/hexagon.png") cover no-repeat center center ; */
background: url("../../images/guide/hexagon.png") no-repeat center center ;
background-size: cover;
text-align: center;
vertical-align: middle;
cursor: pointer;
font-size: 0.28rem;
/* font-size: 0.16rem; */
color: #fff;
}
/* iphone 6/7/8 */
/* width: 375px & height: 667px */
@media (min-width: 375px) and (max-width: 375px) and (orientation: portrait) {
.circle {
position: absolute;
width: 1.76rem;
height: 1.76rem;
line-height: 1.56rem;
background: url("../../images/guide/hexagon.png") no-repeat center center;
text-align: center;
vertical-align: middle;
cursor: pointer;
font-size: 0.16rem;
color: #fff;
}
.menu-text31 {
transform: translateX(0.55rem) translateY(-0.15rem);
}
.menu-text32 {
transform: translateX(-0.35rem) translateY(0.3rem);
}
}
/* iphone 6/7/8 plus*/
/* width: 414px & height: 736px */
@media (min-width: 414px) and (max-width: 414px) and (orientation: portrait) {
.circle {
position: absolute;
width: 1.76rem;
height: 1.56rem;
line-height: 1.56rem;
background: url("../../images/guide/hexagon.png") no-repeat center center;
text-align: center;
vertical-align: middle;
cursor: pointer;
font-size: 0.16rem;
color: #fff;
}
.menu-text31{
transform: translateX(0.45rem) translateY(-0.15rem);
}
.menu-text32{
transform: translateX(-0.35rem) translateY(0.2rem);
}
}
最新文章
- .NET跨平台之旅:将QPS 100左右的ASP.NET Core站点部署到Linux服务器上
- ionic 发布 inoc显示不正确
- 定位和xml解析和gson解析加上拉加载,下拉刷新
- iis上json解析失败404
- 使用Markdown+Pandoc+LaTex+Beamer制作幻灯片
- 2013eoe移动开发者大会圆满落幕
- IOS学习之路十二(UITableView下拉刷新页面)
- POJ1061青蛙的约会(扩展欧几里得)
- jQuery 笔记
- 加一个 时间戳 TimeStamp 可以解决 重复提交问题 SqlServer
- 20160314 Request 和Response
- NOI2011 Day1
- Serialize a Binary Tree or a General Tree
- 背水一战 Windows 10 (69) - 控件(控件基类): UIElement - Manipulate 手势处理, 路由事件的注册, 路由事件的冒泡, 命中测试的可见性
- Android back键及backWebview模式跳转详解
- table表格超出部分显示省略号
- BZOJ2547 CTSC2002玩具兵(最短路径+二分答案+最大流)
- Nginx网站常见的跳转配置实例
- springboot之jar运行脚本
- linux下线刷硬盘