モバイル Web レイアウトなどのプログラミングはあまり得意ではありません。
私はこれを書いた:
HTML:
<div id="title">...</div>
JavaScript
$("#title").css("margin-left", "7%");
$("#title").css("margin-right", "7%");
var i = screen.width * 0.018 + "px"; // It would be 24.588 at resolution of 1366
$("#title").css("margin-top", i); // And i wanted to use 24.588px here
$("#title").css("margin-bottom", i); // and here.
また、Chrome は左右に div マージンを表示しますが、上下の MARGINS をレンダリングしません...