js实现鼠标拖拽效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xm...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xm...
<form action=""> <table width="100%" border="0" cellpadding="0" cellspacing="0" > ...
如何在IE6及更早浏览器中定义小高度的容器方法:#test{overflow:hidden;height:1px;font-size:0;line-height:0;}
方法:input,button{overflow:visible;}
方法:#test{display:inline;}当在IE6及更早浏览器中出现浮动后margin值解析为双倍的情况,设置该元素的display属性为inline即可。
方法:li{vertical-align:top;}除了top值,还可以设置为text-top | middle | bottom | text-bottom,甚至特定的<length>和<percentage>值都可以
方法:.a{color:#f00;} .main{width:950px;background:#eee;} .content{float:left;width:750px;height:100px;background:#ccc;_margin-right:-3px;} .aside{height:100px;background:#aaa;}<div class=&...
a,span{display:block;background:#ddd;} <ul> <li><a href="../">CSS参考手册</a></li> <li><a&nbs...
.test{zoom:1;overflow:hidden;width:500px;} .box1{float:left;width:100px;} .box2{float:right;width:400px;}<div class="test"> <...
一、IE边框若显若无,须注意,定是高度设置已忘记;二、浮动产生有缘故,若要父层包含住,紧跟浮动要清除,容器自然显其中;三、三像素文本慢移不必慌,高度设置帮你忙;四、兼容各个浏览须注意,默认设置行高可能是...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xm...
text-indent : 2em;在FF无效果解决方法:加入样式:display:block;挺好用的效果,这是我写样式的时候遇到的,分享给大家!