价格符号伪元素样式提取
This commit is contained in:
		
							parent
							
								
									1f2b9bebd7
								
							
						
					
					
						commit
						92d8bbbfcd
					
				@ -46,4 +46,11 @@
 | 
				
			|||||||
        height: 100%;
 | 
					        height: 100%;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // 通过伪元素处理符号
 | 
				
			||||||
 | 
					    .price::before {
 | 
				
			||||||
 | 
					        content: "¥";
 | 
				
			||||||
 | 
					        font-size: 100%;
 | 
				
			||||||
 | 
					        margin-right: 3rpx;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
				
			|||||||
@ -179,12 +179,6 @@ export default {
 | 
				
			|||||||
      flex: 1;
 | 
					      flex: 1;
 | 
				
			||||||
      font-size: 36rpx;
 | 
					      font-size: 36rpx;
 | 
				
			||||||
      color: #eb4450;
 | 
					      color: #eb4450;
 | 
				
			||||||
      // 通过伪元素处理符号
 | 
					 | 
				
			||||||
      &::before {
 | 
					 | 
				
			||||||
        content: "¥";
 | 
					 | 
				
			||||||
        font-size: 80%;
 | 
					 | 
				
			||||||
        margin-right: 3rpx;
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    .iconfont {
 | 
					    .iconfont {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user