简体   繁体   中英

create a Tick symbol in HTML table

I want to output a tick symbol (like a check mark in American English) inside the elements at the end of each row in my table (that's going in an eamil to be displayed on windows pc's running IE 8 and IE 10)

I have tried several different ways of doing this, with no luck.

Here is my HTML:

<td align="centre" style="font-family: wingdings; font-size:150%;font-weight:bold; font-color:green">&#10004;</TD>

I did try some of the suggestions here on SO: 658044 but have had no success

what am I doing wrong?

You are using unicode, no need for a font family. Also, the style property is color, not font-color.

<td style="font-size:150%;font-weight:bold;color:green;">&#10004;</td>

you can use one of these codes:

<td align="center" style="text-align:center; font-size:150%; font-weight:bold; color:green;">&#10004;</td>

or

<td align="center" style="text-align:center; font-size:150%; font-weight:bold; color:green;">&#x2714</td>

although center is correct. you can remove one of text-align:center; or align="center" optionaly, as you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM