亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

<a class="ico>標簽設定了absolute屬性,為什么沒有根據他的父元素<form>來定位?

<a class="ico>標簽設定了absolute屬性,為什么沒有根據他的父元素<form>來定位?

慕粉3541299 2016-09-23 03:00:22
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>仿豆瓣</title><link rel="stylesheet" href="css/css.css"><style>*{margin:0px;padding:0px;}a{text-decoration: none;}li{list-style-type:none;}img,input{ border:none; border:1px solid none;}#head{ width:1152px; height:88px; border:solid 1px red; margin:0px auto; position:relative;}}#head .head-search{ width:272px;height:32px; border:1px solid #c3c3c3; position:absolute; left:195px;top:30px; color:#e4e4e4;}#head .ico{ background: url(../images/icon.png) no-repeat; display:block; width:14px; height:13px; position:absolute; top:41px; left:434px;}</style></head><body> <div id = "head"> <a class="head-logo" href="#"></a> <form > <input type="text" class ="head-search" placeholder="書籍,電影,音樂,小組,小站,成員"/ > ? <a class="ico" href="#"></a> </form></div></body></html><a class="ico>標簽設定了absolute屬性,為什么沒有依據他的父元素<form>來定位?而是根據了最外層的<div id="head">這個塊元素來定位
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 1376 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號