如何去除颜色 [英] how to remove color of

查看:76
本文介绍了如何去除颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <  选择    id   ="  > 
              <  选项    ="   option1" <   > 
              <  选项    ="   option2" <   > 
 <  /select  >  





解决方案

您的问题不清晰...

解决方案

您的问题不明确...
如果要在悬停选项上不设置bgcolor,请尝试以下方法...

#option1:hover
{
background:Transparent;
}

您可以将类归属设置为所有选项并指定样式

 < select  id ="select3">
              < option  id ="option1" class ="option"> </ 选项 > 
              < option  id ="option2" class ="option"> </ 选项 > 
 </ 选择 >  



.option:hover
{
background:Transparent;
}


hi

<select id="select3">
              <option id="option1"></option>
              <option id="option2"></option>
 </select>





how to remove BackgroundColor when select is focuse an option have not backgorund color when Hover it!!!!!!?

解决方案

your qustion is not clear...
if you want to set no bgcolor on hover for options try this...

#option1:hover
{
background:Transparent;
}

you can set class atribute to all options and specify style

<select id="select3">
              <option id="option1" class="option"></option>
              <option id="option2" class="option"></option>
 </select>



.option:hover
{
background:Transparent;
}


这篇关于如何去除颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆