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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

請(qǐng)問一下倒數(shù)第十行的height問題。

請(qǐng)問一下倒數(shù)第十行的height問題。

大大張偉大 2016-12-02 23:26:34
<html><head>? ? <title>bing search</title>? ? <style type="text/css">? ? * {? ? ? ? margin: 0;? ? ? ? padding: 0;? ? }? ? body {? ? ? ? background: #333;? ? }? ? .bg {? ? ? ? background-image: url(http://img1.sycdn.imooc.com//52da5e7d0001c0f813660768.jpg);? ? ? ? width: 1366px;? ? ? ? height: 648px;? ? }? ? .logo {? ? ? ? background: url(http://img1.sycdn.imooc.com//52da5e530001eea901070053.jpg) no-repeat;? ? ? ? width: 107px;? ? ? ? height: 53px;? ? ? ? float: left;? ? ? ? margin-top: -10px;? ? ? ? margin-right: 20px;? ? }? ? .search-form {? ? ? ? float: left;? ? ? ? background-color: #fff;? ? ? ? width: 407px;? ? ? ? padding: 5px;? ? }? ? .search-box {? ? ? ? position: absolute;? ? ? ? top: 20%;? ? ? ? left: 8%;? ? }? ? .input-text {? ? ? ? float: left;? ? ? ? font-size: 100%;? ? ? ? width: 375px;? ? ? ? height: 30px;? ? ? ? line-height: 30px;? ? ? ? outline: none;? ? ? ? border: 0;? ? }? ? .input-submit {? ? ? ? float: left;? ? ? ? height: 29px;? ? ? ? width: 29px;? ? ? ? /*圖片位于document位置 x=30px y=107px*/? ? ? ? background: transparent url(http://img1.sycdn.imooc.com//52da5df800012b1e02220137.jpg) no-repeat -30px -107px;? ? ? ? border:0;? ? ? ? cursor: pointer;? ? }? ? #content {? ? background: white;? ? overflow: hidden;? ? width: 375px;? ? height: 150px;? ? font-size: 16px;? ? display: none;? ? }? ? #content ul li {? ? padding: 5px 5px 5px 10px;? ? }? ? #content ul li:hover {? ? background-color:#ccc;? ? cursor: pointer;? ? text-decoration: underline;? ? }? ? </style>? ? <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script></head><body>? ? <div class="bg">? ? ? ? <div class="search-box">? ? ? ? ? ? <div class="logo"></div>? ? ? ? ? ? <form action="https://www.bing.com/search" target="_blank" method="get" class="search-form">? ? ? ? ? ? ? ? <input type="text" id="search_content" class="input-text" name="wd">? ? ? ? ? ? ? ? <input type="submit" class="input-submit" value="">? ? ? ? ? ? </form>? ? ? ? </div>? ? ? ? <div id="content">? ? ? ? <ul>? ? ? ? <li>匹配結(jié)果1</li>? ? ? ? <li>匹配結(jié)果2</li>? ? ? ? <li>匹配結(jié)果3</li>? ? ? ? </ul>? ? ? ? </div>? ? </div></body><script type="text/javascript"> $("#search_content").keyup(function(event) { /* Act on the event */ $("#content").show(); $("#content").css({ left: $(".search-form").offset().left, top: $(".search-form").offset().top+$("#search_content").height()+10,/*這里為什么是加10呢,我看了一下上面代碼padding只是設(shè)置了5px*/ position:"absolute" }); }); $(document).click(function(event) { $("#content").hide(); });</script></html>
查看完整描述

1 回答

?
weenhall

TA貢獻(xiàn)121條經(jīng)驗(yàn) 獲得超57個(gè)贊

什么意思

查看完整回答
反對(duì) 回復(fù) 2016-12-03
  • 1 回答
  • 0 關(guān)注
  • 1583 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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