1 body{ 2 background-image:url('11.jpg'); 3 background-color:yellow; 4 background-repeat:no-repeat; 5 background-attachm...
分类:
Web程序 时间:
2015-01-07 20:35:21
阅读次数:
194
<html> <head> <meta charset="utf-8" content="text/htnl"> <title>button</title> <style type="text/css"> a.button{ position:relative; width: 80px; height: 50px; background-color: red; display: block;...
分类:
Web程序 时间:
2015-01-07 19:20:13
阅读次数:
213
1.CSS规则如果两个选择器完全相同,后出现的为准越具体的选择器,为准2.letter-spacingword-spacing字母间距,单词间距3.:first-letter:first-linep:first-letter该p段落的第一个字母4.[][attribute] 用于选取带有指定属性的元素。[attribute=value] 用于选取带有指定属性和值..
分类:
Web程序 时间:
2015-01-07 19:10:23
阅读次数:
200
一. 允许网页宽度自动调整: "自适应网页设计"到底是怎么做到的?其实并不难。 首先,在网页代码的头部,加入一行viewport元标签。viewport是网页默认的宽度和高度,上面这行代码的意思是,网页宽度默认等于屏幕宽度(width=device-width),原始缩放比例(initial-sca...
分类:
移动开发 时间:
2015-01-07 18:32:54
阅读次数:
213
The Shapes of CSSAll of the below use only a single HTML element. Any kind of CSS goes, as long as it's supported in at least one browser.SquareRectan...
分类:
Web程序 时间:
2015-01-07 18:20:27
阅读次数:
298
我们开发CSS+DIV网页(Xhtml)时候,比较困惑和纠结的事就是CSS命名,特别是新手不知道什么地方该如何命名,怎样命名才是好的方法。 命名规则说明: 1)、所有的命名最好都小写 2)、属性的值一定要用双引号("")括起来,且一定要有值如class="divcss5",id="divc...
分类:
Web程序 时间:
2015-01-07 18:10:28
阅读次数:
155
html: <!DOCTYPE html> <html> <head> ? ? <meta charset="UTF-8"> ? ? <title></title> ? ? <link rel="stylesheet" href="index.css"/> ? ? <script src="jquery-1.7.1.min.js"></script> ? ? <scr...
分类:
Web程序 时间:
2015-01-07 17:02:54
阅读次数:
294
一、前言 说到前端构建怎能缺少CSS预处理器呢!其实CSS的预处理器有很多啦,比较出名的有Scss、Sass、Stylus和Less。(最近还听说出现了Autoprefixer等CSS后处理器,可参考@一丝的PPT) 众多CSS预处理器中Les...
分类:
其他好文 时间:
2015-01-07 16:46:11
阅读次数:
322
Between both those :Javascriptfunction setCss(object, css) { return (object.className = css);}function getCss(object, css) { return object.class...
分类:
其他好文 时间:
2015-01-07 16:40:00
阅读次数:
158
xsl 是 xml的样式表,类似 css和html的关系xsl包含三部分:1、xslt-用于转换xml2、xpath-用于导航(遍历,选取节点)xml3、xsl-fo-用于格式话xml通过 XSLT,您可以向或者从输出文件添加或移除元素和属性。您也可重新排列元素,执行测试并决定隐藏或显示哪个元素,等...
分类:
其他好文 时间:
2015-01-07 16:31:55
阅读次数:
191