Html 特殊符号转译代码
序号 | 符号 | 表示符 | 序号 | 符号 | 表示符 | 序号 | 符号 | 表示符 | ||
1 | [ | [ | 2 | / | / | 3 | < | < | ||
4 | ] | ] | 5 | \ | \ | 6 | > | > | ||
7 | ! | ! | 8 | # | # | 9 | & | & | ||
10 | $ | $ | 11 | % | % | 12 | 空格 | | ||
圆点 | • | • | 或 • |
Html文字格式标签的设置
p标签等段落内部设置单个字的样式:<span style="font-weight: bold; font-size: 1.5em;"> </span>
首行文字缩进2个字符:<p style="text-indent: 2em;">
下划线文字:<p style="text-decoration: line-through;">
删除线文字:<p style="text-decoration: line-through;">
居中显示:< p style="text-align: center;">
字体1.6px、1.8倍行高、深灰色的文字段落:<p style="font-size: 16px; line-height: 1.8; color: #333;" >
这是紫色、24像素、Arial字体的文字:<p style="color: purple; font-size: 24px; font-family: 'Arial', sans-serif;">
这是橙色、加粗、带有背景色的文字:<p style="color: #ff6600; font-size: 18px; font-weight: bold; background-color: #f0f0f0; padding: 15px;">