问题
I have code as this :
<select>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
can i use like this ?
<select>
<option><sup>1</sup></option>
<option><sup>2</sup></option>
<option><sup>2</sup></option>
</select>
回答1:
You can't use another tag inside options tag. But you can do something like:
<select>
<option>¹</option>
<option>²</option>
<option>³</option>
</select>
This &sub1
, &sub2
, &sub3
is only possible for 1, 2 and 3.
You can write other numbers using codes from here: Superscript Chart
Or you can use this website to get the unicodes of alphabets: Unicode Character Search
来源:https://stackoverflow.com/questions/31553810/how-can-i-use-sup-sup-in-option-option-in-html