指定字体大小和字体: 18px Simsun, arial
指定字体样式、大小和字体: italic 18px Simsun, arial
指定字体样式、小型大写字母、大小和字体: italic small-caps 18px Simsun, arial
指定字体样式、小型大写字母、粗细、大小和字体: italic small-caps bold 18px Simsun, arial
指定字体样式、小型大写字母、粗细、大小、行高和字体: italic small-caps bold 18px/20px Simsun, arial
指定字体为 caption = normal normal normal normal 13px normal .HelveticaNeueDeskInterface-Regular
指定字体为 icon = normal normal normal normal 13px normal .HelveticaNeueDeskInterface-Regular
指定字体为 menu = normal normal normal normal 13px normal .HelveticaNeueDeskInterface-Regular
指定字体为 small-caption = normal normal normal normal 11px normal .HelveticaNeueDeskInterface-Regular
指定字体为 status-bar = normal normal normal normal 10px normal .HelveticaNeueDeskInterface-Regular
1.相应的脚本特性为font,即通过el.style.font
即可设置或获取字体
所有浏览器均支持该属性