我有以下HTML格式,将给定元素放置在桌面顶部和移动设备底部(宽度<640像素)的有效方法是什么?由于有许多不同的设备,我不想写位置坐标,因为页面高度的内容会有所不同.有什么建议?
<html>
<head>
..
</head>
<body>
..
<p>I am on the top of desktop page, and bottom of mobile page</p>
...
</body>
</html>
Run Code Online (Sandbox Code Playgroud)