text-shadow是给文本添加阴影效果,box-shadow是给元素块添加周边阴影效果。随着html5和CSS3的普及,这一特殊效果使用越来越普遍。基本语法是{box-shadow:[inset] x-offset y-offset blur-radius spread-radiuscolor}...
分类:
Web程序 时间:
2014-09-01 19:29:53
阅读次数:
496
1.圆角效果如今的Web设计在不断跟进最新的开发技术,纷纷采用HTML5来开发多样性的Web应用。HTML5的优势之一,就是之前必须用图片实现的元素,现在可以用代码来实现。“border-radius”是实现这一功能的一个重要的属性,可以用来直接定义HTML元素的圆角,并且被所有现代浏览器支持。Cs...
分类:
Web程序 时间:
2014-09-01 15:18:33
阅读次数:
202
/*help*/.help{ position: relative; width: 130px; height: 130px; border: 6px #fff solid; border-radius: 50%; -webkit-animation: rotation 1s ease-in...
分类:
Web程序 时间:
2014-08-31 15:48:01
阅读次数:
520
Css3圆角讲解:想必大家对于图片,背景圆角,都不陌生吧,圆角语法:border-radius:圆角值;这个值可以使用:em ,ex,pt,px,百分比;Border-radius跟margin,padding差不多Border-radius:lefttop,righttop,rightbottom...
分类:
Web程序 时间:
2014-08-27 16:29:37
阅读次数:
251
/* 进度条 */div.progress {width: 600px;margin: 10px auto;height: 20px;line-height: 20px;font-size: 14px;background: #F7F7F7;border-radius: 4px;box-shadow...
分类:
其他好文 时间:
2014-08-27 01:35:37
阅读次数:
448
//Archimedes
#include<iostream>
#include<cmath>
usingnamespacestd;
intmain()
{
constdoubley=62.4;
constdoublepi=3.1415926;
doubleweigth,radius,volume,fb;
cout<<"输入球的重量和半径:\n";
cin>>weigth>>radius;
volume=(4.0/3)*pi..
分类:
其他好文 时间:
2014-08-26 03:04:06
阅读次数:
227
此文长期更新,具体根据我博客的样式判定.架构: BlackLowKey页面CSS:div.prob{ box-shadow:0 0 4px #ccf; padding: 2px; text-align:left; border-radius:6px;}div.prob h2{ font-s...
分类:
其他好文 时间:
2014-08-24 20:45:12
阅读次数:
231
function circleIntersectRect(circle_pt, radius, rect)
local cx = nil
local cy = nil
-- Find the point on the collision box closest to the center of the circle
if circle_pt.x...
分类:
其他好文 时间:
2014-08-20 16:22:42
阅读次数:
213
效果图: css代码:img{ width:30px; height:30px; border-radius:50px;}
分类:
Web程序 时间:
2014-08-20 13:58:12
阅读次数:
269