From 71d2fdc65c8e8e3cd2b1afd8be50c4aea08bdb96 Mon Sep 17 00:00:00 2001 From: shuailong Date: Mon, 22 Aug 2016 18:07:50 +0800 Subject: [PATCH] =?UTF-8?q?CSS=E7=BD=91=E7=AB=99=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=20--=20=E6=A8=AA=E5=90=91=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E7=9A=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/fourth.css | 32 ++++++++++++++++++++++++++++++++ fourth.html | 19 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 css/fourth.css create mode 100644 fourth.html diff --git a/css/fourth.css b/css/fourth.css new file mode 100644 index 0000000..6955058 --- /dev/null +++ b/css/fourth.css @@ -0,0 +1,32 @@ +@charset "utf-8"; +/* CSS Document */ + +/* 横向导航 */ +#nav{ + height:26px; + border-bottom:2px solid #2788da; +} +#nav li{ + list-style-type:none; + float:left; + font-weight:bold; +} +#nav li a{ + color:#000000; + text-decoration:none; + padding-top:4px; + display:block; + width:97px; + height:22px; + text-align:center; + background-color:#ececec; + margin-left:2px; +} +#nav li a:hover{ + background-color:#bbbbbb; + color:#ffffff; +} +#nav li a#current{ + background-color:#2788da; + color:#ffffff; +} \ No newline at end of file diff --git a/fourth.html b/fourth.html new file mode 100644 index 0000000..454c069 --- /dev/null +++ b/fourth.html @@ -0,0 +1,19 @@ + + + + + +CSS网站元素设计 + + + + + +