用css實現了一個精緻的縱嚮導航菜單

來源:互聯網
上載者:User

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>縱嚮導航菜單</title>
<style>
  #course {
 border-width:0px 1px 1px 1px;
 border-style:solid;
 border-color:#f3c3f3;
 width:120px;
 }
  #course dt,#course dd {
 margin:0;
 padding:3px;
 font-size:12px;
 }
  #course dt {
 border-top: 1px solid #f3c3f3;
 font-weight: bold;
 background-color:#c3f3c3;
 }
</style>
</head>

<body>
<dl id="course">
 <dt>專家課堂</dt>
  <dd>工作流程</dd>
  <dd>Oracle</dd>
  <dd>ejb 3.0</dd>
 <dt>脫產就業培訓</dt>
  <dd>java基礎提高班</dd>
  <dd>java就業實戰班</dd>
  <dd>java高手精華班</dd>
  <dd>.net就業實戰培訓</dd>
 <dt>周末充電班</dt>
  <dd>java高手精華班</dd>
  <dd>.net高手精華班</dd>
</dl>
</body>
</html>

在寫程式的時候,遇到了一個問題,不小心將  border-width:0px 1px 1px 1px;這樣的具有多個值的屬性寫錯了,寫成了 border-width:0px,1px,1px,1px;,即把每個值之間空格寫成了逗號,效果就出不來了。

相關文章

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.