html中div

來源:互聯網
上載者:User

標籤:html   div設計   

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>你爸爸</title>

<!-- CSS樣式 -->
<style>
#input ul {
    margin: 0;
    padding: 0;
    list-style:none;
    padding-top: 25px;
}

#input li {
    float: left;
    padding-left: 20px;
}
#logo{
    height: 25%;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 15px;
}
#logo span{
    color: blue;
    font-size: 45px;
}
#type{
    height: 25%;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}
#div1{
    width: 100px;
    float: left;
    padding-left: 32%;
}
#div2{
    width: 100px;
    float: left;
}

#search{
    text-align: center;
    width: 100%;
}
#input{
    width: 40%;
    height: 40px;
    float:left;
    padding-left:32%;
}
#input span{
    padding-top: 25px;
}
#search_input{
    width: 100%;
    height: 30px;
}
#search_button{
    margin-right: 10px;
}
#right_div{
    width: 100px;
    float:left;
}
#right_div ul{
    list-style:none;
    margin: auto;
}
#end{

    text-align: center;
    width: 100%;
    height: 20%;
}
</style>

</head>
<body>

    <div id="logo" ><span id="google">Google</span>Google</div>
    
    <div id="type">
        <div id="div1" >網頁</div>
        <div id="div2" ><a href="#">圖片</a></div>
        <div id="div2" ><a href="#">資訊</a></div>
        <div id="div2" ><a href="#">地圖</a></div>
        <div id="div2" ><a href="#">更多></a></div>
    </div>
    
    <div id="search" ><!-- 外層div -->
        <div id="input"><!-- 紅色div -->
            <input id="search_input" type="text"/><br>
            <span>
                <input id="search_button" type="button" value="Google 搜尋"/>
                <input type="button" value="手氣不錯" />
            </span>
            <ul>
                <li><input type="radio" name="page" value="" checked="checked">所有頁面</li>
                <li><input type="radio" name="page" value="">中文頁面</li>
                <li><input type="radio" name="page" value="">簡體中文頁面</li>
                <li><input type="radio" name="page" value="">中國的頁面</li>
            </ul>
        </div>
        
        <div id="right_div"><!-- 綠色div -->
            <ul>
                <li><a href="#"><font size="2">進階搜尋</font></a></li>
                <li><a href="#"><font size="2">使用搜尋</font></a></li>
                <li><a href="#"><font size="2">語言工具</font></a></li>
            </ul>
        </div>
    </div>
 
</body>
</html>

html中div

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.