用js控制css的不錯的方法_CSS/HTML

來源:互聯網
上載者:User
<style type=text/css> #tabs UL {DISPLAY: inline; PADDING-LEFT: 0px; MARGIN-LEFT: 10px; WHITE-SPACE: nowrap} #tabs UL LI {BORDER-RIGHT: #999 1px solid; PADDING-RIGHT: 8px; BORDER-TOP: #999 1px solid; DISPLAY: inline; PADDING-LEFT: 12px; FONT-SIZE: x-small; BACKGROUND: #eee; PADDING-BOTTOM: 0px; BORDER-LEFT: #999 1px solid; MARGIN-RIGHT: 2px; PADDING-TOP: 3px; BORDER-BOTTOM: #4bcb66 0px solid; FONT-FAMILY: verdana; WHITE-SPACE: nowrap} #tabs UL LI.active_web {BORDER-RIGHT: #4bcb66 1px solid; PADDING-RIGHT: 8px; BORDER-TOP: #4bcb66 1px solid; PADDING-LEFT: 12px; FONT-WEIGHT: bold; FONT-SIZE: x-small; BACKGROUND: #f7fdf6; PADDING-BOTTOM: 0px; BORDER-LEFT: #4bcb66 1px solid; PADDING-TOP: 6px; BORDER-BOTTOM: #f7fdf6 1px solid; FONT-FAMILY: verdana; WHITE-SPACE: nowrap} #tabs UL LI.active_news {BORDER-RIGHT: #d3bf8e 1px solid; PADDING-RIGHT: 8px; BORDER-TOP: #d3bf8e 1px solid; PADDING-LEFT: 12px; FONT-WEIGHT: bold; FONT-SIZE: x-small; BACKGROUND: #fff9eb; PADDING-BOTTOM: 0px; BORDER-LEFT: #d3bf8e 1px solid; PADDING-TOP: 6px; BORDER-BOTTOM: #fff9eb 1px solid; FONT-FAMILY: verdana; WHITE-SPACE: nowrap} </style> <SPAN id="logo"></sPAN> <UL><LI id="l1" class="active_web"> <SPAN class="active_web_text" id=cnSp> 中文搜尋</sPAN> <LI id="l2" > <SPAN id=enSp > 英文搜尋</sPAN> <LI id="l3" > <SPAN id=bigSp > 國內門戶</sPAN> <LI id="l4" > <SPAN id=otherSp > 綜合其它</sPAN></lI> </uL>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
  • 相關文章

    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.