A good way to control CSS with JS

Source: Internet
Author: User

<Br/> <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> <p> <span id = "logo"> </span> </P> <ul> <li id = "L1" class = "active_web"> <SPAN class = "active_web_text" id = "CNSP"> <br/> Chinese search </span> </LI> <li id = "L2"> <span id = "ENSP"> English search </span> </LI> <li id = "L3"> <span id = "bigsp"> <br/> domestic portal </span> </LI> <li id = "L4"> <span id = "othersp"> others </span> </LI> </ul> <p>
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.