background-color:transparent;就是把背景色设置为透明。 实际上background默认的颜色就是透明的属性。所以写和不写都是一样的 span{ width: 0; height: 0; display: inline-block; } border-top: 60px s ...
分类:
其他好文 时间:
2016-08-12 11:36:44
阅读次数:
145
一、边框(Border) border:复合属性。设置对象边框的特性。 取值:border: line-width | line-style | color 1)line-width:设置或检索对象边框宽度。 2)line-width:设置或检索对象边框样式。 3)color:设置或检索对象边框颜色 ...
分类:
Web程序 时间:
2016-08-12 01:17:29
阅读次数:
178
border-width border-color border-style border-width 简写属性为元素的所有边框设置宽度,或者单独地为各边边框设置宽度。 只有当边框样式不是 none 时才起作用。如果边框样式是 none,边框宽度实际上会重置为 0。不允许指定负长度值。 border ...
分类:
Web程序 时间:
2016-08-12 01:12:19
阅读次数:
262
1.border-width:边框宽度。 2.border-color:边框颜色。 3.border-style:边框线样式。 4.border:边框。 5.border-radius:圆角。 6.border-image:边框背景图片。 7.box-shadow:盒子模型。 8.line-heig ...
分类:
Web程序 时间:
2016-08-12 01:01:32
阅读次数:
195
本文为H5EDU机构官方的HTML5培训教程,主要介绍贪食蛇JavaScript强化教程1.首先创建div并且给div加样式<divid="pannel"style="width:500px;height:500px;z-index:1;opacity:0.5"></div>给<style...>地图(div和表格)、所有的块(蛇头,食物身体加样式)2.创..
分类:
编程语言 时间:
2016-08-11 23:31:32
阅读次数:
447
<!DOCTYPEHTML><html><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"><title>分类名称</title> <style> h2,ul,li{margin:0;padding:0;} #list{height:149px;width:570px;margin:0auto;border:1pxsoli..
分类:
编程语言 时间:
2016-08-11 23:29:17
阅读次数:
358
边框样式: 1. border-width 边框宽度: 2. border-color 边框颜色: 3. border-style 边框线: 边框线属性值有: none(无轮廓) hidden(隐藏边框。IE7及以下尚不支持) dotted(点状轮廓。IE6下显示为dashed效果) dashed( ...
分类:
其他好文 时间:
2016-08-11 22:26:25
阅读次数:
202
一、元素样式 1.width控制元素宽度 2.height控制元素宽度 3.padding控制元素内边距 内容与边框之间的距离 4.margin控制元素外边距 元素边框与其他元素边框之间的距离,如果两元素都设置了margin属性,浏览器只 对较大值有效。 演示结果 这是div里面的内容 5.opac ...
分类:
Web程序 时间:
2016-08-11 22:23:35
阅读次数:
200
一:边框样式 1.边框线 border-style : none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset 例:div { width:300px; height:100px; bord ...
分类:
其他好文 时间:
2016-08-11 22:22:53
阅读次数:
150
1.如果想要设置某个物体有多边形的刚体,这样可以更精确地进行碰撞检测,可以用以下的方法 auto hero = PlaneHero::create(); addChild(hero, 0, HERO_TAG); hero->setPosition(Vec2(winSize.width / 2, he ...
分类:
其他好文 时间:
2016-08-11 22:19:52
阅读次数:
330