返回box模型-导......登陆

box模型-导航栏案例

源逸2019-04-21 15:58:43271

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

<!DOCTYPE html>

<html>

<head>

<title>css/box模型导航栏案例/2019/04/21 15:00</title>

<meta charset="utf-8">

<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">

<style type="text/css">

    *{padding:0px;margin:0px;font-size:20px;}

    ul li{list-style:none;}

/* header-top*/

    a:link{text-decoration:none;}

    a:link{color:rgba(255,255,255,.7);}

    a:hover{color:#fff;}

    .box-header{

        width:100%;

        height:60px;

        background-color:#000000;

    }

    .box-header ul li{

        float:left;

    }

    .box-header ul li a{

        padding:20px;

        line-height:60px;

 

    }

    .index{

        height:60px;

        background-color:#333;

    }

    .top-item{

        float:left;

        line-height:60px;

    }

/* header-top end */

    .box-aoyun{

        float:left;

    }

     

    .float{margin:0px auto;}

     

    .aoyun-1{

        display:inline-block;

        width:100px;

        height:100px;

        border:1px solid #ccc;

        border-radius:50px;

    }

     

</style>

</head>

<body>

<div class="box">

    <div class="box-header">

        <ul>

            <li class="index"><a href="#">首页</a></li>

            <li><a href="#">html</a></li>

            <li><a href="#">css</a></li>

            <li><a href="#">javascript</a></li>

            <li><a href="#">jquery</a></li>

            <li><a href="#">bootstrap</a></li>

            <li class="top-item">

                <select>

                    <option>工具下载</option>

                    <option>在线手册</option>

                    <option>网站源码</option>

                    <option>类库下载</option>

                </select>        

            </li>

        </ul>    

    </div>

</div>

<div class="box-aoyun">

    <div class="float">

        <div class="aoyun-1 center"></div>

        <div class="aoyun-1"></div>

        <div class="aoyun-1"></div>

    </div>

</div>

</body>

</html>


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送