質問
XMLフィードから入手した後にinnertextをラッピングすることは私のために働いていません。私はこのようなものを考えていました:
foreach($html->find('td',1) as $e) {
echo '<div style="width:100%; word-wrap:break-word;">' . $e->innertext . '</div>';
}
.
しかしそれは包まれていません。私は結果を見るためにクロムを使っています。私はまた、幅を小さくすることができないようにしました。それはテキストを切って私に与えて...最後に...。私は何が足りないのですか?
解決 2
This is something you need to change in the jquery mobile css: .ui-li-desc { white-space: normal; }
他のヒント
I used below snippet and works fine, $html->find('td',1)
this snippet does not return an array it returns object at index 1. Correct way; If you want deal with all "td" tags you should remove second parameter
$e = $html->find('td',1);
echo '<div style="width:100%; word-wrap:break-word;">' . $e->innertext . '</div>';
所属していません StackOverflow