热门搜索组件中的样式问题

来源:10-3 组件开发:热门搜索词组件

therapists

2020-11-05

请问:
background-position-x: right, right;
background-position-y: bottom, top;

这种样式是什么意思?
能解释一下吗 谢谢!

写回答

1回答

艾特老干部

2020-11-13

background-image: linear-gradient(0, #e1e1e1, #e1e1e1 50%, transparent 50%),

linear-gradient(90deg, #e1e1e1, #e1e1e1 50%, transparent 50%);

background-position-x: right, right;

background-position-y: bottom, top;


如上所示,background-image 有2个图片组成,background-position-x 的两个值,分别对应每个图片的x轴方向的设置。


0
0

React16+Redux实战企业级大众点评Web App

从架构设计到部署上线,带你学习React技术栈与核心思想

1071 学习 · 306 问题

查看课程