我在Vs代碼中創建了一個網頁。然后我從google-font中選擇一種字體并將其鏈接嵌入HTML 的 head 標簽中。然后在 CSS 中添加字體系列。它工作正常。當我在實時服務器擴展中測試網頁時。我注意到每當我在 CSS 中寫一個字符時,頁面 就會晃動很大。當我停止編寫代碼時,震動就會停止。在搖動過程中,字體無緣無故地變得更大、更小、更暗等,盡管我沒有對字體做任何事情。這背后的問題是什么?如何停止這種晃動?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>
為什么在瀏覽器中運行時我的網頁底部有空白?
慕的地8271018
2024-01-11 10:37:37