调整浏览器窗口大小时如何防止页面元素移动?

时间:2018-12-14 09:34:02

标签: html css

在调整浏览器窗口大小时如何防止页面元素移动?这是我的代码。

<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Electives Assign #1</title>
</head>
<script src="autoscrollscript.js"></script>
<body background="https://winstonfitness.com/wf- 
content/uploads/2017/12/Maroon-Back-Ground.jpg">
<font size="+3">
<h1><font color="#FFFFFF">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2e/Polytechnic_University_of_the_Philippines.svg/1200px-Polytechnic_University_of_the_Philippines.svg.png" height="135" width="135" align="middle"/>Polytechnic University of the Philippines</font></h1>
</font>
<center>
<font size="+5",color="white">
<h2><font color="#FFFFFF">PUP Hymn</font></h2>
</font>
<font size="+5", color="white">
 Sintang Paaralan<br>
 Tanglaw ka ng bayan<br>
 Pandayan ng isip ng kabataan<br>
 Kami ay dumating nang salat sa yaman<br>
 Hanap na dunong ay iyong alay<br>
 Ang layunin mong makatao<br>
 Dinarangal ang Pilipino<br>
 Ang iyong aral, diwa, adhikang taglay<br>
 PUP, aming gabay<br>
 Paaralang dakila<br>
 PUP, pinagpala<br>
 Gagamitin ang karunungan<br>
 Mula sa iyo, para sa bayan<br>
 Ang iyong aral, diwa, adhikang taglay<br>
 PUP, aming gabay<br>
 Paaralang dakila<br>
 PUP, pinagpala<br>
</font>
</center>
</body>
</html>

0 个答案:

没有答案