我无法弄清楚IE7中无序列表的问题是什么。有些子弹未对准,有些子弹根本没有出现。
http://dl.bearce.me/bullet-problem.jpg
第1组和第3组的CSS
ul {
color: #C20000;
list-style: square url("../images/li-square.jpg");
margin: 0 0 25px 15px;
}
ul li {
color: #333;
font-family: Arial, sans-serif;
font-size: 14px;
font-weight: normal;
line-height: 24px;
}
/* (specific to Group 3 */
ul.half {
float: left;
width: 295px;
}
ul.third {
float: left;
width: 191px;
}
第1组的HTML
<div class="col">
<h1>Exterior Services</h1>
<ul>
<li><a href="services-exterior-snow-removal.htm">Snow & Ice Removal</a></li>
<li><a href="services-exterior-landscaping.htm">Landscaping & Maintenance</a></li>
<li><a href="services-exterior-parking-lots.htm">Parking Lot Maintenance</a></li>
<li><a href="services-exterior-window-washing.htm">Windows & Power Washing</a></li>
<li><a href="services-exterior-general-repair.htm">General Repair Maintenance</a></li>
</ul>
</div><!--/.col-->
<div class="col">
<h1>Interior Services</h1>
<ul>
<li><a href="services-interior-janitorial.htm">Janitorial</a></li>
<li><a href="services-interior-electrical.htm">Electrical & Lighting</a></li>
<li><a href="services-interior-plumbing-hvac.htm">Plumbing & HVAC</a></li>
<li><a href="services-interior-maintenance.htm">Preventative Maintenance Programs</a></li>
<li><a href="services-emergency.htm">Emergency Services</a></li>
</ul>
</div><!--/.col-->
第3组的HTML
<ul class="half" style="width:345px;">
<li>Back-up generators and power supply</li>
<li>Carbon monoxide detectors</li>
<li>Circuit-breaker conversions</li>
<li>Electrical upgrades</li>
<li>Fuse and breaker change-outs</li>
<li>Indoor and outdoor lighting (including security)</li>
</ul>
<ul class="third">
<li>Low-voltage wiring</li>
<li>Safety inspections</li>
<li>Smoke detectors</li>
<li>Surge protection</li>
<li>Switches, sockets and outlets</li>
<li>Troubleshooting</li>
</ul>
第2组的CSS
#sidebar ul {
list-style: disc url("../images/li-disc.jpg");
list-style-position: inside;
margin: 0;
}
#sidebar ul li {
border-bottom: 1px solid #dadada;
color: #000;
font-weight: bold;
padding: 5px 0;
}
#sidebar ul li:first-child {
border-top: 1px solid #dadada;
}
第2组的HTML
<div id="sidebar">
<h3>exterior Services</h3>
<ul>
<li><a href="services-exterior-snow-removal.htm">Snow & Ice Removal</a></li>
<li><a href="services-exterior-landscaping.htm">Landscaping & Maintenance</a></li>
<li><a href="services-exterior-parking-lots.htm">Parking Lot Maintenance</a></li>
<li><a href="services-exterior-window-washing.htm">Windows & Power Washing</a></li>
<li><a href="services-exterior-general-repair.htm">General Repair Maintenance</a></li>
</ul>
<h3>interior Services</h3>
<ul>
<li><a href="services-interior-janitorial.htm">Janitorial</a></li>
<li><a href="services-interior-electrical.htm">Electrical & Lighting</a></li>
<li><a href="services-interior-plumbing-hvac.htm">Plumbing & HVAC</a></li>
<!-- <li><a href="services-interior-maiintenance.htm">Interior Maintenance</a></li> -->
</ul>
<h3>24/7/365</h3>
<ul>
<li><a href="services-preventative-maintenance.htm">Preventative Maintenance Programs</a></li>
<li><a href="services-emergency.htm">Emergency Services</a></li>
</ul>
</div><!--/#sidebar-->
答案 0 :(得分:0)
不要使用列表样式的图像。使用CSS背景。您无法轻松控制列表样式图像的位置。
另外,请不要设置LI
标记的样式,设置A
- 标记样式并使用display:block
;
请参阅我的教程: