0
我试图分析此表解析(仅部分显示):与类不止一个字
<table width="100%" cellpadding="0" cellspacing="0" id="row-item-all-0-1" class="my-day-menu-table" style="">
<tr class="always-show-me">
<td colspan="3"><strong>Dinner</strong></td>
</tr>
<tr class="price- menu-item-type-1">
<td width="24%" class="child-odd border-candidate station" style="vertical-align:top;" rowspan="1">
<strong>options</strong>
</td>
<td class="child-odd description">
<strong>pasta express</strong> <img class="tipbox vegetarian" src="http://www.cafebonappetit.com/images/public/menu-item-type-orange.png" alt="vegetarian" />
</td>
...
</tr>
...
</table>
我想它有类“子奇文字“选项”边界候选者选择“,但是当我使用Simple HTML Dom解析器时,它似乎并不喜欢它,因为该类不止一个单词。我将如何做到这一点?注意我试过把类名放在引号中,但它没有奏效。
只是一个提示,那不是一个包含多个单词的类,它是多个类的列表。 – 2013-03-19 23:03:39
“孩子奇怪的边界候选人选择”不是一个单独的班级,而是四个不同的班级。 – jmoerdyk 2013-03-19 23:03:43