php
1<?php 2$width="<script type=\"text/javascript\">document.write(window.innerWidth)</script>" 3?> 4<html lang="ja"> 5<head> 6</head> 7<body> 8<?=$width; ?><!--出力は980--> 9<p><?php var_dump($width==980); ?></p> 10</body> 11</html>
なぜかfalseになります。なぜでしょうか。
回答3件
あなたの回答
tips
プレビュー