IMO أي من الطرق الثلاثة على ما يرام. يمكن أن أجادل أي واحد منهم أن يكون أفضل ثم الآخر 2.
سأذهب نفسي مع القائمة لمجرد أن كود أقل عندما أبحث عنها.
<ul id="presentationsContainer">
<li>
Presentation October 2009
<span><a target="_blank" href="Presentation.ppt">Download PPT </a></span>
<span><a target="_blank" href="Presentation.ppt">Download PPT </a></span>
</li>
<li>
Presentation October 2009
<span><a target="_blank" href="Presentation.ppt">Download PPT </a></span>
<span><a target="_blank" href="Presentation.ppt">Download PPT </a></span>
</li>
<li>
Presentation October 2009
<span><a target="_blank" href="Presentation.ppt">Download PPT </a></span>
<span><a target="_blank" href="Presentation.ppt">Download PPT </a></span>
</li>
</ul>
تعديل لا يزال من الممكن إجراء إضافة PPT الإضافي عن طريق إضافة فترة أخرى إلى كل LI. أفترض أنه للحصول على PDF قم بتنزيل Floating الخاص بك إلى اليمين وإعطائه عرضًا. بهذه الطريقة ، فإن إضافة عمود آخر ليس رمز CSS آخر. الجحيم يمكنك حتى إزالة المدى وإضافة هذا النمط إلى علامة A. على افتراض عدم وجود روابط في هذا العمود الأول.
ومع ذلك ، إذا كنت ترغب في تغييره إلى جدول (والذي قد يكون خيارًا أفضل مع المزيد من الأعمدة) ، فيمكنك فعل شيء مثل هذا: يمكنك بالفعل معرفة مقدار الكود الذي يجب البحث عنه.
<table id="presentationsContainer">
<tr>
<td class="main" width="60%">Presentation October 2009</td>
<td class="dl" width="20%">Download pdf</td>
<td class="dl" width="20%">Download ppt</td>
</tr>
<tr>
<td class="main" width="60%">Presentation October 2009</td>
<td class="dl" width="20%">Download pdf</td>
<td class="dl" width="20%">Download ppt</td>
</tr>
<tr>
<td class="main" width="60%">Presentation October 2009</td>
<td class="dl" width="20%">Download pdf</td>
<td class="dl" width="20%">Download ppt</td>
</tr>
</table>