问:HTML:<section id =“ secondary”> <h3>联系方式</ h3> <ul class =“ contact-info”> <li class =“ phone”> <a href="tel:555-6425"> 555 -6425 </a> </ li> <li class =“ mail”> <a href="mailto:mmmccready@xxx.com"> mmmccready@xx.com </a> </ li> <li class =“ twitter“> <a href="http://xx.com/intent/tweet?screen_name=mccready9"> @ mccready9 </a> </ li> </ ul> </ section>
/ **********************页面:CONTACT ********************** /
.contact-info {list-style:none; 填充:0; 边距:0; 字号:0.9em;}
.contact-info a {display:block; 最低高度:20像素;背景重复:不重复;背景尺寸:20px 20px;填充:0 0 0 30px; 边距:0 0 10px; }
.contact_info li.phone a {background-image:url('../ img / phone.png'); }
.contact_info li.mail a {background-image:url('../ img / mail.png'); }
.contact_info li.twitter a {background-image:url('../ img / twitter.png'); }
答:我不确定这是否是正确的答案,但是立即查看,您的某些CSS选择器正在寻找一类contact-info,而其中一些正在寻找一类contact_info