Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要素のスタイル属性を取得したいときに問題が発生しました。
$styleValue = $this->getAttribute("//ul@style");
しかし、var_dump($styleValue) の結果は
string(1) ";"
しかし、私は「margin-left: -2432px;」を期待していました。それで、どこが間違っているのですか?要素のスタイル属性を取得するにはどうすればよいですか?