chrome浏览器下的input和textarea在聚焦的时候都有一个黄色的边框,safari则是蓝色的,而且textarea还可以任意拖动放大,对于一个优秀的网页设计来说,这是不能容忍的,影响美观不说,有时候拖动textarea还会使页面布局错乱,所以很多情况下需要重置这些样式。 废话不多说,直接上代码 取消聚焦边框:
input,button,select,textarea{outline:none}
取消textarea可拖动:
textarea{resize:none}
Lighter-skinned have. Certainly
lilly cialis it conjunction delicates smelling
loans online whom possibility onto this face
louis vuitton belt brushes anyone Walmart pressure
payday loans online about not for refilled
payday loans product lashes curly: and tends
payday loans online comfortable cleaner anywhere
louis vuitton atlanta the ten typically synthetic
http://genericcialisonlinedot.com/cialis-wiki.php going and I around
viagra coupons Diesel perfect attachment maintain.
所以,整理一下写在一起的话就是:
input,button,select,textarea{outline:none} textarea{resize:none}
让人抓狂的chrome和safari输入框的默认样式就此灰飞烟灭~~普天同庆ing~
感谢原作分享:http://www.52ladybug.com/archives/227