第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

overflow:hidden到底是咋回事 搞不懂呀? 有大神嗎?

<!DOCTYPE html>
<html>
<head>
?? ?<meta charset="UTF-8">
?? ?<title>Document</title>
?? ?<style type="text/css">
?? ?@font-face{
?? ??? ?font-family: iconfont;
?? ??? ?src:url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.eot);
?? ?}
?? ?*{
?? ??? ?margin: 0;
?? ??? ?padding: 0;
?? ?}
?? ?body{
?? ??? ?font:12px/1.5 tahoma,arial,sans-serif;
?? ?}
?? ?a{
?? ??? ?text-decoration: none;
?? ?}
?? ?.search-tips a{
?? ??? ?float:right;
?? ??? ?color:#6c6c6c;
?? ??? ?padding: 3px 10px 0 15px;
?? ?}
?? ?.search-button{
?? ??? ?float:right;
?? ?}
?? ?.btn-search{
?? ??? ?background: url(http://gtms01.alicdn.com/tps/i1/T1qyj8Fc8aXXc4E9bI-400-300.png);
?? ??? ?width: 100px;
?? ??? ?height: 45px;
?? ??? ?background-position: 0 -200px;?? /*起始點(diǎn)是0 -200*/
?? ??? ?border: 0;?? /*去掉按鈕的邊框*/
?? ??? ?cursor: pointer;
?? ?}
?? ?.search-common-panel{
?? ??? ?height: 39px;
?? ??? ?background-color: #f50;
?? ??? ?overflow: hidden;?? /*超出它內(nèi)容的 做隱藏處理?? 元素生成了BFC*/
?? ??? ?padding: 3px 0 3px 77px;
?? ?}?? ?
?? ?.search-common-panel input{
?? ??? ?height:39px;
?? ??? ?line-height: 39px;
?? ??? ?width: 100%;
?? ??? ?border:0 none;
?? ??? ?outline: 0;
?? ??? ?background-color: #fff;
?? ?}
?? ?</style>
</head>
<body>
?? ?<div>
?? ??? ?<div>
?? ??? ??? ?<form action="">
?? ??? ??? ??? ?<div>
?? ??? ??? ??? ??? ?<a href="#">高級(jí)<br/>搜索</a>
?? ??? ??? ??? ?</div>
?? ??? ??? ??? ?<div>
?? ??? ??? ??? ??? ?<button type='submit'></button>
?? ??? ??? ??? ?</div>
?? ??? ??? ??? ?<div>
?? ??? ??? ??? ??? ?<input type="text">
?? ??? ??? ??? ??? ?<i></i>
?? ??? ??? ??? ?</div>
?? ??? ??? ?</form>
?? ??? ?</div>
?? ??? ?<div></div>
?? ?</div>
</body>
</html>


一開始input的輸入域在下面?? 一加overflow:hidden 就上去了?

? 我也知道overflow:hidden 可以讓父元素? 高度撐起來包括子元素?

? 但在例子中父元素有39px的高度啊 ??? 并不是 沒有設(shè)置高度

納悶 子元素為什么一開始就在下面?? 在父元素的外面

? 這根本說不通啊?? 子元素在父元素外面只可能是定位定過去的? 怎么回事呢?

正在回答

1 回答

就是超出的部分會(huì)被隱藏起來

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_我叫紅領(lǐng)巾_2 提問者

去知乎看了看 貌似這里不是這樣 形成了一個(gè)bfc
2017-02-23 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
搜索框制作
  • 參與學(xué)習(xí)       66019    人
  • 解答問題       463    個(gè)

本課程從簡(jiǎn)入深講解搜索框的制作,學(xué)習(xí)JQ與JS實(shí)現(xiàn)Ajax技術(shù)的不同點(diǎn)

進(jìn)入課程

overflow:hidden到底是咋回事 搞不懂呀? 有大神嗎?

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)