从外文网站找到的给error设置能显示背景图片的代码: label.error{ display:inline-block; width: 88px; height: 66px; background: url( //image); text-indent:-500em; }