会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bottle_小姐
CnBlogs
Home
New Post
Contact
Admin
Subscription
上一页
1
2
3
下一页
2016年3月16日
垂直水平居中的四种方法
方法一 待居中元素具有确定的高度和宽度 css: .parent{ positive:relative; } .child{ width:200px; height:200px; positive:absolute; left:50%; top:50%; margin-left:-100px; <!
Read More
posted @ 2016-03-16 17:20 bottle_小姐
Views(329)
Comments(0)
Diggs(0)
2016年3月12日
CSS——relative
relative会对absolute有诸多限制: 1、定位 absolute:绝对定位,CSS 写法“ position: absolute; ”,它的定位分两种情况,如下: 1. 没有设定 Top、Right、Bottom、Left 的情况,默认依据父级的“内容区域原始点”为原始点。 2. 有设定
Read More
posted @ 2016-03-12 19:53 bottle_小姐
Views(122)
Comments(0)
Diggs(0)
CSS——隐性改变display类型
有一个有趣的现象就是当为元素(不论之前是什么类型元素,display:none 除外)设置以下 2 个句之一: position : absolute float : left 或 float:right 元素会自动变为以 display:inline-block 的方式显示,当然就可以设置元素的
Read More
posted @ 2016-03-12 18:53 bottle_小姐
Views(213)
Comments(0)
Diggs(0)
CSS——字体缩写
网页中的字体css样式代码也有他自己的缩写方式,下面是给网页设置字体的代码: body{ font-style:italic; font-variant:small-caps; font-weight:bold; font-size:12px; line-height:1.5em; font-fam
Read More
posted @ 2016-03-12 16:23 bottle_小姐
Views(501)
Comments(0)
Diggs(0)
CSS——元素分类
常用的块状元素有: <div>、<p>、<h1>...<h6>、<ol>、<ul>、<dl>、<table>、<address>、<blockquote> 、<form> 常用的内联元素有: <a>、<span>、<br>、<i>、<em>、<strong>、<label>、<q>、<var>、<c
Read More
posted @ 2016-03-12 16:00 bottle_小姐
Views(108)
Comments(0)
Diggs(0)
CSS段落排版——缩进
text-indent:2em 注意:2em的意思就是文字的2倍大小。 文字或字母间隔 letter-spacing 单词间隔 word-spacing
Read More
posted @ 2016-03-12 15:59 bottle_小姐
Views(404)
Comments(0)
Diggs(0)
CSS文字排版——删除线
text-decoration:line-through
Read More
posted @ 2016-03-12 15:52 bottle_小姐
Views(246)
Comments(0)
Diggs(0)
CSS——权值
标签的权值为1,类选择符的权值为10,ID选择符的权值最高为100。例如下面的代码: p{color:red;} /*权值为1*/ p span{color:green;} /*权值为1+1=2*/ .warning{color:white;} /*权值为10*/ p span.warning{co
Read More
posted @ 2016-03-12 15:42 bottle_小姐
Views(143)
Comments(0)
Diggs(0)
github客户端命令行
git 初始化 git init 增加分支 git branch dev ,dev 为分支名称 ; 切换分支 git checkout dev ,dev 为分支名称; 显示所有分支 git branch git checkout -b 相当于git branch dev git checkout d
Read More
posted @ 2016-03-12 10:31 bottle_小姐
Views(356)
Comments(0)
Diggs(0)
2016年3月10日
fullpage插件
代码: <!DOCTYPE html><html><head><meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/> <title>try
Read More
posted @ 2016-03-10 23:13 bottle_小姐
Views(514)
Comments(0)
Diggs(0)
上一页
1
2
3
下一页
公告