1、dotted点状
2、solid实线
3、double双实线
4、dashed;虚线
实例一:如果一个CSS这样写:border-style:dotted solid double dashed; 出来的框就是:上边框是点状,右边框是实线,下边框是双线,左边框是虚线
实例二:如果一个CSS这样写:border-bottom:1px dashed #000000;出来的框就是:一条宽度为1像素的黑色下划虚线。
以此类推。多试试就知道什么效果了哦。list-style的颜色可以自己根据需要设置,方法是给<ul>标签加上color属性值,这样就会改变list-style 的颜色,并且不会影响文字的颜色:
例如:
html代码为:<ul> <li><a href="#" title="百家合符">百家合符</li></ul>
css样式代码:ul {padding-left:15px;color:#d1c098;}
li {height:20px;line-height:20px;list-style:square;}
大小可以通过给<ul>标签加font-size改变,不过存在兼容性问题(ie6不支持)
详情可查考:>
原理就是,先定义一个元素 ,然后定义动画XYZ轴偏移。
body > div > div:after {content: "";
position: absolute;
top: -5px;
box-shadow: 0 0 12px #fff;
left: 50%;
margin-left: -5px;
width: 5px;
height: 5px;
border-radius: 50%;
background-color: #fff;
-webkit-animation: particle_ 2s infinite linear;
animation: particle_ 2s infinite linear;
}body > div:nth-of-type(4) > div, body > div:nth-of-type(4) > div:after {
-webkit-animation-delay: -15s;
animation-delay: -15s;
}
body > div > div {
width: 200px;
height: 200px;
position: relative;
-webkit-transform-style: preserve-3d;
-webkit-animation: trail_ 2s infinite linear;
transform-style: preserve-3d;
animation: trail_ 2s infinite linear;
}
实施步骤:
建立一个BOX
在BOX中制作一个元素。
CSS动画定义BOX旋转按照你的轨迹。
通过。
-webkit-transform:rotateY( 0deg ) rotateZ( 0deg ) rotateX( 0deg );
-moz-transform:rotateY( 0deg ) rotateZ( 0deg ) rotateX( 0deg );
-o-transform:rotateY( 0deg ) rotateZ( 0deg ) rotateX( 0deg );
transform:rotateY( 0deg ) rotateZ( 0deg ) rotateX( 0deg );
来定义旋转方向,0是不旋转。0-360度是一圈。
-webkit-transition:transform 1s;
transition:transform 1s;
这是设置动画时间。
一个BOX完成后,复制box,摆在统一中心点后,设置Z轴的数字。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)