不可能用CSS控制。
只能模仿。

解决方案 »

  1.   

    这种效果怎样?
    <html>
    <head>
    <title>flashasp</title>
    <script langauge="javascript">function change(){var color="blue"
    var a=new Array()
    a[1]="gold"
    a[2]="red"
    a[3]="skyblue"
    a[4]="orange"
    a[5]="lightseagreen"
    a[6]="lime"
    a[7]="purple"
    a[8]="white"
    a[9]="salmon"
    a[10]="lightgrey"var r=Math.floor(Math.random() * 11) + 1document.forms[0].menuBg.style.backgroundColor=a[r]
    document.forms[0].menuBg.style.fontWeight="bold"
    document.forms[0].menuBg.style.color=colorsetTimeout("change()",100)}
    window.onload=change
    </script>
    </head>
    <body>
    <form>
    <SELECT name="menuBg">
    <option value="Whatever" selected>Select a Topic
    <option value="Whatever">Javascript
    <option value="Whatever">DHTML
    <option value="Whatever">Java
    <option value="Whatever">Perl
    <option value="Whatever">C++
    </select>
    </form>
    </body>
    </html>