hi, Class with spaces
cexll opened this issue · comments
Solve:
<div class="norms clearfix mt15 ">
<span class="fl ft14 db c999">规格1:</span>
<div class="norms-con fl">
<a href="http://item.epet.com/125833.html" title="2kg" class="norms-a">
2kg <span class="goods-select"></span> </a>
<a href="http://item.epet.com/125834.html" title="10kg" class="norms-a">
10kg </a>
</div>
</div>
$text = $dom->find(".fl ft14 db c999")->text;
var_dump($text);
NULL
What should I do?
.fl.ft14.db.c999
Please check how CSS selectors are working: https://www.w3schools.com/cssref/sel_class.asp
Thanks, my css foundation is too bad