English 中文(简体)
每一类组组的最后一个
原标题:Last of each class group

因此,我有一系列的<条码>与条形;“的内容,其中一些内容有特殊类别:

<tr>...</tr>
<tr class="special">...</tr>
<tr class="special">...</tr> <!-- this one -->
<tr>...</tr>
<tr class="special">...</tr>
<tr class="special">...</tr>
<tr class="special">...</tr> <!-- this one -->
<tr>...</tr>
<tr>...</tr>

我怎么能够把我的安保部中每个特别小组的最后一个目标作为目标? 或者我是否应该改变我的标记? 请注意,任何CSS3海军陆战队员都获准。

最佳回答

There isn t a selector for that, sorry. You ll have to change your markup somehow (easiest by adding a class to the last of each group).

问题回答

BoltClock所说的是真实的,有点。 如果你有办法取代<代码><tr>...</tr>至</ul> <ul>,你可使用ul tr.special:last-child





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签