<h3><img src="wp-content/themes/HotNewspro/images/bulletin.gif">教务通知</h3>
外部CSS:
#sidebar h3 {
padding: 0px 0px 0px 5px;
height:27px;
line-height:40px;
color: #393939;
font-size: 12px;
font-weight: normal;
}
#sidebar h3 img{
vertical-align:middle
}
我想让教务通知和这个小喇叭图片距离底下的灰色边界10px 调整其中的padding中的top参数无法实现效果
请高手帮帮我!
把图片设置成背景再试试
也可以吧文字加绝对定位