Home  >  Article  >  Web Front-end  >  求大神帮忙写下如图的css样式,谢谢啦_html/css_WEB-ITnose

求大神帮忙写下如图的css样式,谢谢啦_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:03:08935browse


求大神帮忙写下如图的css样式,位置在页面的中央,按钮的大小是:190px*50px。颜色是橙色(#FF7100)和白色(#FFFFFF)。当鼠标点击后,两者的样式交换。
请帮忙写下啦。
谢谢啦。


回复讨论(解决方案)

jquery的addClass,removeClass;2个方法很简单啊

jquery的addClass,removeClass;2个方法很简单啊


关键是两个按钮的样式不太会,js会写的。

为两个按钮btn1,btn2添加click事件

$('#btn1').click(function(){$(this).addClass('class1');$('#btn2').addClass('class2');})

手打难免有失误。。。。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn