画面が特定の幅を下回っている場合に改行を強制する何かをhtmlに入れたいです。これは iOS 用です。それをしてもいいですか?
または、さらに良いことに、画面の幅をトリガーする何らかの if/else/endif を実行する方法はありますか? このようなもの:
if screen width < 600 pixels
some html
else
some other html
endif
それが重要な場合は、そうでないことを願っていますが、これは少なくとも最初は iOS デバイス用です。
編集:ここに例があります:
<body>
In spherical coordinates, given a vector field
<math>
<mn class="boldMath">F </mn>
<mn>(</mn>
<mi>r</mi>
<mn>, </mn>
<mi>θ</mi>
<mn>, </mn>
<mi>φ</mi>
<mn>)</mn>
</math>, the curl is<br>
<math>
<mrow>
<mn mathvariant="bold">∇</mn>
<mn> × </mn>
<mi mathvariant="bold">F</mi>
<mn> = </mn>
</mrow>
</math> <!-- I need a line break here on the phone, but not on the pad. On the iPad, I would be delighted to have the above included in the mtable below.>
<div class="center">
<math>
<mtable>
<!-- long mtable here -->
</mtable>
</math>
</div>
</body>
出力は iPhone では良好ですが、iPad ではそれほどではありません。各スクリーン ショットの下部を参照してください。