-
我的網站有一個 水平溢流 在行動檢視中,由於頁尾內容溢出而產生問題。為了解決這個問題,我應用了下列 CSS 程式碼:
body { overflow-x: hidden; max-width: 100%; }
This code resolved the horizontal overflow issue, but it also caused the footer and its content to be hidden. How can I fix this issue while ensuring the footer content remains visible?
-
如果您沒有在行動檢視中設定填充值,通常會預設為桌面的填充值。您可以嘗試將數值設定為 0
"`/* 預設樣式 (例如桌面檢視) */.element {
fill: #000; /* 桌面填充值範例 */
}
/* Mobile view – Explicitly set fill to 0 */
@media screen and (max-width: 768px) { /* Adjust max-width as needed for your mobile breakpoint */
.element {
fill: none; /* Or set it to 0, depending on what you want to achieve */
}
}
“`
-