CSS Hide outer Span and show inner span

前端 未结 5 1747
别那么骄傲
别那么骄傲 2020-12-22 03:21
as low as $1,33         


        
5条回答
  •  执念已碎
    2020-12-22 03:49

    You can modify the font-size value to hide all text and then show the inner span text this way:

    .price {
      font-size: 0;
    }
    .price span {
      font-size: 18px;
    }
    
      as low as 
      
        $
         1,335.79
      
    

提交回复
热议问题