上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: css轮廓主要是用来突出元素的作用 outline 设置轮廓属性 outline-color 设置轮廓的颜色 outline-style 设置轮廓的样式 outline-width 设置轮廓的宽度 阅读全文
posted @ 2017-03-03 10:11 letitia_blog 阅读(122) 评论(0) 推荐(0) 编辑
摘要: css定位(改变元素在页面上的位置) 普通流:元素按照其在html中的位置顺序决定排布的过程 浮动: 绝对布局: position 把元素放在一个静态的、相对的、绝对的、或固定的位置中 static(偏移量不起作用) relative absolute fixed top 元素向上的偏移量 left 阅读全文
posted @ 2017-03-03 10:10 letitia_blog 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1.内边距(内边距在content外,边框内) 内边距属性: padding 设置所有边距 padding-bottom 底边距 padding-left 左边距 padding-right 右边距 padding-top 上边距 2.边框 border-style 定义边框样式 单边框样式 bor 阅读全文
posted @ 2017-03-03 10:01 letitia_blog 阅读(2289) 评论(0) 推荐(0) 编辑
摘要: 1.元素选择器 最常见的选择器就是元素选择器,文档的元素就是最基本的选择器 h1{......} a{........} 2.选择器分组 h1,h2{.......} 通配符 * 3.类选择器详解 类选择器允许以一种独立与文档元素的方式来指定样式 .class{.......} 结合元素选择器 a. 阅读全文
posted @ 2017-03-03 10:00 letitia_blog 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 对齐操作 1.使用margin属性进行水平对齐 margin-left:auto; margin-right:auto; 2.使用position属性进行左右对齐 3.使用float属性进行左右对齐 尺寸操作 height 设置元素高度 line-height 设置行高 max-height 设置元 阅读全文
posted @ 2017-03-03 10:00 letitia_blog 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 强制换行: word-break: break-all; 只对英文起作用,以字母作为换行依据 word-wrap: break-word; 只对英文起作用,以单词作为换行依据 white-space: pre-wrap; 只对中文起作用,强制换行 禁止换行: white-space: nowrap; 阅读全文
posted @ 2017-03-03 09:59 letitia_blog 阅读(238) 评论(0) 推荐(0) 编辑
摘要: text-transform: none 默认 capitalize 每个单词以大写字母开头 uppercase 仅有大写字母 lowercase 无大写字母,仅有小写字母 inherit 继承父元素的text-transform属性 阅读全文
posted @ 2017-03-03 09:58 letitia_blog 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1.javascript输出 JavaScript语句向浏览器发出的命令。语句的作用是告诉浏览器该做什么。 <script> document.write("hello world!"); </script> 插入,输出。 document.getElementById("pid").innerHT 阅读全文
posted @ 2017-03-03 09:56 letitia_blog 阅读(7551) 评论(0) 推荐(1) 编辑
摘要: 1.ie6的3像素bug 当浮动元素遇到非浮动元素的时候,会有3px的缝隙,在ie6浏览器下的时候。 .menu{ height:200px; width:150px; float:left; _margin-right:-3px; /*解决方法,只针对ie6*/ } +padding-left:5 阅读全文
posted @ 2017-03-03 09:56 letitia_blog 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 了解函数 函数是由事件驱动的或者当它被调用时执行的可重复使用的代码块。 <script> function demo(a,b){ var sum=a+b; return sum; } var v1=demo(20,10); alert(v1); </script> <script> function 阅读全文
posted @ 2017-03-03 09:55 letitia_blog 阅读(360) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页