1<style> 2 #tag { 3 height: auto; 4 margin: 0 8px 0 0; 5 padding: 0 7px; 6 font-size: 12px; 7 line-height: 20px; 8 white-space: nowrap; 9 border: 1px solid #d9d9d9; 10 border-radius: 4px; 11 cursor: default; 12 font-size: smaller; 13 color: #52c41a; 14 background: #f6ffed; 15 border-color: #b7eb8f; 16 margin-left: 8px; 17 } 18</style> 19 20<div id="tag"> 21 <slot /> 22</div> 23