task_1 百度首頁

來源:互聯網
上載者:User

標籤:

頭部

<html lang=en>中如果設定了語言的話,chrome 會自動嘗試翻譯,所以去掉 lang=en

 

 

input 間隙問題

當兩個input並列在一起時比如百度的首頁中

搜尋 input 和 submit input 並列式這種情況會出現間隙

為什麼會出現這種情況?把兩個 input 間的換行或空格去掉,發現空隙就沒有了啊!O(∩_∩)O哈哈哈~這種問題

所以解決的方法有四種:

1. 去掉空格換行

2.設定父元素的字型大小為0,與上面的方法類似

3.讓元素浮動(脫離文檔流)

4.使用position(脫離文檔流)

 

task_1 百度首頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.