css使用transform设计常用形状

<view class='input_back' catchtap='hidePayLayer'><text></text><text></text></view>
.input_back {
  position: absolute;
  left: 0;
  top: 0;
  width: 80rpx;
  height: 90rpx;
  display: flex;
  justify-content: center;
  align-items: center;
}

.input_back text:nth-child(2) {
  width: 15rpx;
  height: 15rpx;
  background-color: white;
  border: 1rpx solid #aaa;
  border-width: 3rpx 0 0 3rpx;
  transform: rotate(-45deg);
}
.input_back text:nth-child(1) {
  width: 15rpx;
  height: 15rpx;
  background-color: white;
  border: 1rpx solid #aaa;
  border-width: 3rpx 0 0 3rpx;
  transform: rotate(135deg);
  margin-right: 5rpx;
}

效果

发布了151 篇原创文章 · 获赞 28 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/qq_42543264/article/details/105554447