CCS实例,网页栏目

 

 

DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>这是标题title>
    <style type="text/css">
        #title {

            width: 1015px;
            height: 50px;
            background-color: #e8e7e3;
            color: gray;
            font-weight: 500;
            font-family: 'Microsoft YaHei', Arial, Helvetica, sans-serif;

            position: absolute;

            left: 50%;
            margin-top: 40px;
            margin-left: -605px;

        }

        .one {

            padding-top: 15px;
            margin:0px 5px 0px 5px;
            float: left;
            display: block;

            background-color: darkgrey;
            text-align: center;

            width: 135px;
            height: 35px;
        }

        .one:hover {
            background-color: royalblue;
            color: white;
        }
    style>
head>
<body>
<div id="title">

    <div class="one">HTML/CSSdiv>
    <div class="one">JavaScriptdiv>
    <div class="one">Server Sidediv>
    <div class="one">ASP.NETdiv>
    <div class="one">XMLdiv>
    <div class="one">Web Serviesdiv>
    <div class="one">Web Buildingdiv>
div>
body>
html>

 

转载于:https://www.cnblogs.com/bingxing/p/7620452.html

你可能感兴趣的:(CCS实例,网页栏目)