我在Vs代碼中創(chuàng)建了一個(gè)網(wǎng)頁。然后我從google-font中選擇一種字體并將其鏈接嵌入HTML 的 head 標(biāo)簽中。然后在 CSS 中添加字體系列。它工作正常。當(dāng)我在實(shí)時(shí)服務(wù)器擴(kuò)展中測試網(wǎng)頁時(shí)。我注意到每當(dāng)我在 CSS 中寫一個(gè)字符時(shí),頁面 就會(huì)晃動(dòng)很大。當(dāng)我停止編寫代碼時(shí),震動(dòng)就會(huì)停止。在搖動(dòng)過程中,字體無緣無故地變得更大、更小、更暗等,盡管我沒有對字體做任何事情。這背后的問題是什么?如何停止這種晃動(dòng)?body{font-family: 'Girassol', cursive;font-size:25px;}<!DOCTYPE html><html> <head> <title>Dropdown Menu design</title> <link href="https://fonts.googleapis.com/css2?family=Girassol&display=swap" rel="stylesheet" /> <link rel="stylesheet" href="indexstyle.css" /> <script src="try.js"></script> </head> <body> <p> The University was established as compensation for the annulment of the 1905 Partition of Bengal. The partition had established East Bengal and Assam as a separate province, with Dhaka as its capital. However, the partition was abolished in 1911. In 1913, public opinion was solicited before the university scheme was given its final shape, and the Secretary of State approved it in December 1913.[1] The first vice-chancellor of the university was Philip Joseph Hartog, who had been academic registrar of the University of London for 17 years.[ </p> </body></html>
為什么在瀏覽器中運(yùn)行時(shí)我的網(wǎng)頁底部有空白?
慕的地8271018
2024-01-11 10:37:37