Skip to content

Instantly share code, notes, and snippets.

@lichenbuliren
Created October 8, 2016 10:14
Show Gist options
  • Save lichenbuliren/5f566f9d0cc3dd29e23d236499727534 to your computer and use it in GitHub Desktop.
Save lichenbuliren/5f566f9d0cc3dd29e23d236499727534 to your computer and use it in GitHub Desktop.
首字符大写
.price {
display: inline-block;
color: #FF5802;
}
.price:first-letter {
margin-right: 5px;
font-size: xx-large;
vertical-align: -2px;
}
<span class="price">¥399</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment