1.toString方法可以指定格式
比如获取系统当前时间并去掉中间的“-”,可以写成
System.Datetime.Now.ToString(yyyyMMddhhmmmss)
2.DIV+CSS 自适应高度
比如两个div,一个居上dHead,一个居下dFooter,其中dHead中还有若干div如,dHleft,dHright,当dHleft或dHright的高度不确定时,怎么让dHead自动适应最高的内部div的高度,并且dFooter始终距离dHead指定的距离。
css中不设置dHead的高度,设置position属性为relative即可,这样dHead就会自适应高度
然后设置dFooter,margin-top为指定像素即可