HTML/CSS
youth0826
这个作者很懒,什么都没留下…
展开
-
盒模型bug的解决方法
我们定义一个最基本的层:boxtestdiv.boxtest{ border:20px solid #60A179;padding: 30px;background : #ffc;width : 300px;}标准情况下,这个盒的宽度是:20+30+300+30+20=400px。但是在IE5.0浏览器中,对盒模型的宽度解释有个bug,它认为300 px是原创 2013-10-24 17:53:05 · 503 阅读 · 0 评论 -
CSS条状图表:垂直型
style> #vertgraph {}{ width: 378px; height: 207px; position: relative; background: url("http://www.ximicc.com/attachments/month_0803/5200831013452原创 2013-10-24 17:53:03 · 504 阅读 · 0 评论 -
树型列表的实现
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">html>head>meta http-equiv="Content-Type" content="text/html; charset=gb2312">title>树型列表的实现title>style原创 2013-10-24 17:53:01 · 525 阅读 · 0 评论 -
CSS条状图表:复合型
style> dl { margin: 0; padding: 0; } dt { position: relative; /* IE is dumb */ clear: both; display: block; float: left;原创 2013-10-24 17:52:58 · 431 阅读 · 0 评论 -
CSS背景拉伸
div style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='vv.jpg', sizingMethod='scale');width:200px;height:500px;" >div>原创 2013-10-24 17:52:50 · 382 阅读 · 0 评论 -
为GirdView添加CSS样式
首先要定义一个样式,比如下面这个: .text{font-size: 9px;color: #00f;background: 1px solid #cf0;}然后在aspx页面里,给Gridview添加OnRowDataBound="GridView1_RowDataBound",最后在cs页面写GridView1_RowDataBound的方法,在方法里给GridView相应行添加样式,原创 2013-10-24 17:52:44 · 544 阅读 · 0 评论 -
自动倒计时JS代码
style type="text/css"> #oTime { color: blue; font-size: 12px; } style> script language="javascript"> var _t; var _h = 2; var _m = 0; var原创 2013-10-24 17:52:42 · 420 阅读 · 0 评论 -
PCCS-RGB变换表
PCCS Munsell RGB10 RGB16 v1 10RP 4/13.5 185, 31, 87 #b91f57 v2 4R 4.5/14 208, 47, 72 #d02f48 v3 7R 5/14 221, 68, 59 #dd443b v4 10R 5.5/14 233, 91, 35 #e95b23 v5 4YR 6/13.5 230, 120, 0 #e67800原创 2013-10-24 17:54:18 · 7349 阅读 · 0 评论 -
JSP中的日期问题
1、获取服务器端当前日期Date myDate = new Date();2、获取当前年、月、日:Date myDate = new Date();int thisYear = myDate.getYear() + 1900;//thisYear = 2003int thisMonth = myDate.getMonth() + 1;//thisMonth = 5int thisDat原创 2013-10-24 17:52:56 · 574 阅读 · 0 评论