最近看到了一个很爽看的样式,特在此分享。 <style type="text/css">legend { border: 2px ridge #00457b; font-weight: bold; background-color: #e36a51; color: white; padding: 2px 16px;}</style> <legend id="p6"> six </legend> 运行的效果如图所示。呵呵。个人觉得挺好的。