天天看點

html5導航欄div右側顯示内容,HTML5+CSS:左邊導航欄,右邊是對應的文本區域

html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

test

#left,#right{

float:left;

color:#FF33CC;

}

#right{

padding:10px;

margin-top:40px;

}

body{

font-size:28px;

line-height:45px;

}

a{text-decoration:none;

color:#FF0000;}  

li{

list-style:none;

}

  • document.getElementById('text2').style.display='none'">第一節
  • document.getElementById('text1').style.display='none'">第二節

gaga hehe

效果如下圖:

html5導航欄div右側顯示内容,HTML5+CSS:左邊導航欄,右邊是對應的文本區域
html5導航欄div右側顯示内容,HTML5+CSS:左邊導航欄,右邊是對應的文本區域