thx / cube

跨终端、响应式、低设计耦合的CSS解决方案
http://thx.github.io/cube/
MIT License
421 stars 131 forks source link

a 和 button 作为按钮时,样式不统一 #6

Closed huanglong-zz closed 10 years ago

huanglong-zz commented 10 years ago

按钮如果是 a 标签时,hover 样式有一个下划线

cyjake commented 10 years ago

cube 里的 a:hover 下划线是用 border-bottom 实现的,这个做法有好有坏,可以讨论一下

cyjake commented 10 years ago

瓜老师 demo 补得真快 http://thx.github.io/cube/demo/button/

可以看出高度也不一致,button.css 还有不少优化空间

cyjake commented 10 years ago

https://github.com/dotnil/brix-style/blob/scss/scss/button.scss

yisibl commented 10 years ago

已完成 https://github.com/thx/cube/commit/e3def160320d534e1e3cbac0eecec44590e5ebef