怎么用CSS在空间上弄日期、时间?

html-css012

怎么用CSS在空间上弄日期、时间?,第1张

在空间上显示天气预报+系统信息+日历+问候+签名

把以下代码插入最后一行即可!

#comm_info div.line{margin-top:8pxline-height:10pxborder-top:2px solid #BBC1C6

background:url(http://www.hotik.com/sign.png) no-repeat bottompadding-bottom: 100px

margin-bottom: 25px}

代表时间的代码不是在css中,css是一种样式,比如你在做网站的时候,前端html布局了一个页面,感觉不太美观的时候用css样式来控制一下,使其页面更加的美化与易懂;

而代表时间的代码是html中的time(英语也是"时间"的意思)<time>时间是:******</time>

time中属性:datetime 值:datetime

time描述:定义元素的日期和时间。如果未定义该属性,则必须在元素的内容中规定日期或时间。

.weather{ width:400pxheight:30pxfloat:leftmargin-top:20pxmargin-left:40pxline-height:30px}

把width:400px去掉试试。。。