网站开发代码

ASP,PHP,JSP,JS,ASP.NET,DIV,CSS等网站建设相关技术

边框为阴影及DIV内容垂直居中效果


<!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&...

纯CSS超过宽度显示省略号


<!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&...

DIV相对于父DIV底部对齐的实现方法


一般代码-未底部对齐:

<style type="text/css">
.box1 {border:1px #cccccc solid;  width:500px; height:600px;}
.box2 {border-top:1px #cccccc solid; border-bottom:0; background:#f2f6f...

纯CSS大型下拉菜单[带演示]


http://www.corange.cn//uploadfiles/1203_19547.jpg

演示地址:http://www.corange.cn/demo/3739/index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...

纯css下拉菜单,二级侧拉[带演示]


http://www.corange.cn//uploadfiles/1130-1_39696.jpg

演示地址:http://www.corange.cn/demo/3735/index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN&qu...

DIV高度自适应


给最外面的DIV加入height:auto; overflow:hidden

圆角矩形的css方法,附带一个CSS3的方法


第一个,高度自适应,宽度固定

http://www.corange.cn//uploadfiles/7949817_0500_84374.jpg

第二个,用相对定位和绝对定位来实现
ie6在外层的宽度为奇数时会往内偏移1px,其它浏览均显示正常(解决...

可同时区分IE8、IE7、IE6、Firefox3、Firefox2的CSS hacks:


01        .test{ 
02            color:/*\**/#00f\9; /* IE8 */
03        } 
04        .test, 
05        .test:-moz-any-link{ 
06            color:#f60; /* Firefox2 */
07        } 
08        .tes...

纯CSS圆角二级下拉菜单


http://www.corange.cn//uploadfiles/20100423-3_15798.jpg

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...

纯CSS实现的可局部放大的放大镜效果


http://www.corange.cn//uploadfiles/20100418-3_26828.jpg

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...
分页: « 1 2 3 4 5 6 7 8 9 10 ... 35 »

网站目录

友情链接

:: Copyright 2004-2006 PhpBlog.Cn. All Rights Reserved ::