摘要:textarea -> overflow-y:hidden后:1. 在ie6和8中默认最低宽2px,所以给上的宽度会加上22. 谷歌43. ie7和火狐标准<input type="text"> ie6和7会居上和居下各一像素,左浮动后可解决,暂未找出其它解决办法
阅读全文
摘要:1 <style type="text/css"> 2 *{margin:0; padding:0} 3 a{text-decoration: none} 4 5 a{display:inline-block;width:200px; 6 height:34px; 7 line-height:34px; 8 font-weight:bold; 9 text-indent:3em; 10 background:yellow;11 }12 13 a.a1{display:inline-block;14 width:200px; 15 ...
阅读全文
摘要:<style type="text/css"> body{font-size:20px;}</style></head><body> <div style="width:100px;height:2px;background:green"></div></body>可以设置font-size:0px来解决
阅读全文
摘要:aaaaaaaaaaaaaaaaaaaaaaaa b ccc中中中 下面所有浏览器指的是谷歌、火狐、ie6、7、8
阅读全文
摘要:View Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><style>*{margin:0; padding:0; list-style-type:none}body{behavior:u
阅读全文
摘要:View Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><style type="text/css">*{margin:0;padding:0;list-style:n
阅读全文
摘要:View Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><style>*{margin:0; padding:0;}/*圆角、阴影、透明度*/.box { margin-left:50px
阅读全文
摘要:View Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <style type="text/css"> /*这里设置了两块透明div,并重叠看效果,iepngfix.
阅读全文