返回
心录历程
首页
我的磨文件列表设置样式
2014-05-01 03:09:06 -0400
此代码
仅
供
参
考
代码说明
添加说明文字
CSS代码(样式一)
.file_list{ margin:1px; padding:1px; } .file_list li{ background-color: #1afd9c; padding: 10px; /*设置内边距(行高)*/ border:1px solid #ffffff; /*设置 4 个边框*/ margin-top:5px; /*上外边距*/ margin-bottom:5px; /*下外边距*/ text-align: left; display: block; }
代码演示
网页日期时间的多种JS显示方式
状态栏数字钟,状态栏时间显示
获取当前时间,显示“上午”、“下午”
CSS代码(样式二)
.file_list { margin:1px; padding:1px; } .file_list li { background-color: #1afd9c; padding: 10px; /*设置内边距(行高)*/ border:1px solid #ffffff; /*设置 4 个边框*/ margin-top:5px; /*上外边距*/ margin-bottom:5px; /*下外边距*/ text-align: left; display: block; } /*文件列表添加数字序号*/ .file_list{ counter-reset:section; } .file_list li{ counter-increment:section; } .file_list li:before{ content:"" counter(section); } /*取消“.”号*/ .file_list li:nth-child(-1n+9):before{ content:"0" counter(section); }
代码演示
网页日期时间的多种JS显示方式
状态栏数字钟,状态栏时间显示
获取当前时间,显示“上午”、“下午”
CSS代码(样式三)
.file_list { margin:1px; padding:1px; } .file_list li { background-color: #1afd9c; padding: 10px; /*设置内边距(行高)*/ border:1px solid #ffffff; /*设置 4 个边框*/ margin-top:5px; /*上外边距*/ margin-bottom:5px; /*下外边距*/ text-align: left; display: block; } /*文件列表添加数字序号*/ .file_list{ counter-reset:section; } .file_list li{ counter-increment:section; } .file_list li:before{ content:"" counter(section) "."; } /*添加“.”号*/ .file_list li:nth-child(-1n+9):before{ content:"0" counter(section) "."; }
代码演示
网页日期时间的多种JS显示方式
状态栏数字钟,状态栏时间显示
获取当前时间,显示“上午”、“下午”
CSS代码(样式四)
.file_list { margin:1px; padding:1px; } .file_list li { text-align:left; padding: 5px; /*设置内边距(行高)*/ margin: 20px auto; background-color: #1afd9c; border:1px solid #ffffff; /*设置 4 个边框*/ border-radius:10px; } /*文件列表添加数字序号*/ .file_list{ counter-reset:section; } .file_list li{ counter-increment:section; } .file_list li:before{ content:"" counter(section) "."; color: yellow; } /*添加“.”号*/ .file_list li:nth-child(-1n+9):before{ content:"0" counter(section) "."; }
代码演示
免流QQBrowser_V2.3.0.17
(jar)
免流UCBrowser_V8.3.0.133
(jar)
给你爱人的心 Valentine v1.2.0
(jar)
CSS代码(样式五)
.file_list { margin:1px; padding:1px; } .file_list li { background-color: #1afd9c; padding: 10px; /*设置内边距(行高)*/ border:1px solid #ffffff; /*设置 4 个边框*/ margin-top:5px; /*上外边距*/ margin-bottom:5px; /*下外边距*/ text-align: left; display: block; } /*文件列表添加数字序号*/ .file_list{ counter-reset:section; } .file_list li{ counter-increment:section; } .file_list li:before{ content:"" counter(section) "."; background: grey; color: yellow; padding: 2px 4px; font:1.1em bold italic; border-radius:.8em; } /*数字序号添加背景*/ .file_list li:nth-child(-1n+9):before{ content:"0" counter(section) "."; }
代码演示
网页日期时间的多种JS显示方式
状态栏数字钟,状态栏时间显示
获取当前时间,显示“上午”、“下午”
CSS代码(样式六)
.file_list { margin:1px; padding:1px; } .file_list li { padding: 10px; /*设置内边距(行高)*/ border:1px solid #ffffff; /*设置 4 个边框*/ margin-top:5px; /*上外边距*/ margin-bottom:5px; /*下外边距*/ text-align: left; display: block; } /*文件列表添加数字序号*/ .file_list{ counter-reset:section; } .file_list li{ counter-increment:section; } .file_list li:before{ content:"" counter(section) "."; background: grey; color: yellow; padding: 2px 4px; font:1.1em bold italic; border-radius:.8em; } /*数字序号添加背景*/ .file_list li:nth-child(-1n+9):before{ content:"0" counter(section) "."; } /*文件列表实现隔行换色*/ .file_list li:nth-of-type(odd){ background:#900; /*奇数行背景色*/ } .file_list li:nth-of-type(even){ background:#090; /*偶数行背景色*/ } .file_list li:nth-of-type(odd) a{ color:#333; /*奇数行链接文字颜色*/ } .file_list li:nth-of-type(even) a{ color:#fff; /*偶数行链接文字颜色*/ }
代码演示
网页日期时间的多种JS显示方式
状态栏数字钟,状态栏时间显示
获取当前时间,显示“上午”、“下午”
CSS代码(样式七)
.file_list { margin:1px; padding:1px; } .file_list li { padding: 10px; /*设置内边距(行高)*/ border:1px solid #ffffff; /*设置 4 个边框*/ margin-top:5px; /*上外边距*/ margin-bottom:5px; /*下外边距*/ text-align: left; display: block; } /*文件列表添加数字序号*/ .file_list{ counter-reset:section; } .file_list li{ counter-increment:section; } .file_list li:before{ content:"" counter(section) "."; background: grey; color: yellow; padding: 2px 4px; font:1.1em bold italic; border-radius:.8em; } /*数字序号添加背景*/ .file_list li:nth-child(-1n+9):before{ content:"0" counter(section) "."; } /*文件列表实现隔行换色*/ .file_list li:nth-of-type(odd){ background:#900; /*奇数行背景色*/ } .file_list li:nth-of-type(even){ background:#090; /*偶数行背景色*/ } .file_list li:nth-of-type(odd) a{ color:#333; /*奇数行链接文字颜色*/ } .file_list li:nth-of-type(even) a{ color:#fff; /*偶数行链接文字颜色*/ } .file_list li:hover{ background-color:grey; } /*鼠标悬浮在上的链接背景色*/
代码演示
网页日期时间的多种JS显示方式
状态栏数字钟,状态栏时间显示
获取当前时间,显示“上午”、“下午”
CSS代码(样式八)
.file_list { margin-left:10px;/*文件列表左边为10px距离*/ margin-right:10px;/*文件列表右边为10px距离*/ } .file_list a{ padding: 5px 5px; display:block;/*块级元素*/ border:2px double #000000;/*内部边框*/ word-wrap: break-word; /*当文本超出页面可以在一句话中任意单词断行*/ word-break: hyphenate;/*用连字符连接被打断的单词*/ white-space: pre;/*空白会被浏览器保留,不会出现空行*/ } .file_list li { padding: 2px 5px; text-align:left;/*文件列表左对齐*/ } .file_list li a:hover { font-weight: bloder; color: #FFFFFF; background-color: #000000; } .file_list span { color: #000000; padding: 0 3px; float:right;/*文件后缀右对齐*/ }
代码演示
免流QQBrowser_V2.3.0.17
(jar)
免流UCBrowser_V8.3.0.133
(jar)
给你爱人的心 Valentine v1.2.0
(jar)
CSS代码(样式九)
.file_list a{ display:block;padding:5px;margin:2px 1px;line-height:1.3em;height:2.6em;;border-radius:2px;word-wrap:break-word;word-break:break-all;border:1px solid grey;box-shadow:0px 1px 5px grey;overflow:hidden; } .file_list li{ margin:7px 0 0 0;padding:0px; } /*文件列表添加数字序号*/ .file_list{ text-align:left; counter-reset:section; margin:0; padding:5px 0 5px 0; } .file_list li{ counter-increment:section; } .file_list li:before{ content:"" counter(section) "."; background: grey; color: yellow; padding: 2px 4px; font:1.1em bold italic; border-radius:.8em; } /*数字序号添加背景*/ .file_list li:nth-child(-1n+9):before{ content:"0" counter(section) "."; } /*文件列表实现隔行换色*/ .file_list>li:nth-of-type(odd) a{ background:#97CBFF; } /*奇数行背景色*/ .file_list>li:nth-of-type(even) a{ background:#F0F0F0; } /*偶数行背景色*/ .file_list>li>a:hover{ opacity:0.6;color:#000; } /*鼠标悬浮在上的链接不透明度颜色*/ .file_list li span:before{content:".";color:black;} /*文件扩展名前缀*/ .file_list span{ color:black; font-weight:bolder;font-size:100%; float:right; padding:0 5px; position:relative;bottom:35px; /*文件扩展名下移*/ } /*文件扩展名*/
代码演示
免流QQBrowser_V2.3.0.17
(jar)
免流UCBrowser_V8.3.0.133
(jar)
给你爱人的心 Valentine v1.2.0
(jar)
CSS代码(样式十)
.file_list a{ display:block;padding:5px;margin:2px 1px;line-height:1.3em;height:2.6em;;border-radius:2px;word-wrap:break-word;word-break:break-all;border:1px solid grey;box-shadow:0px 1px 5px grey;overflow:hidden; } .file_list li{ margin:7px 0 0 0;padding:0px; } /*文件列表添加数字序号*/ .file_list{ text-align:left; counter-reset:section; margin:0; padding:5px 0 5px 0; } .file_list li{ counter-increment:section; } .file_list li:before{ content:"" counter(section) "."; background: grey; color: yellow; padding: 2px 4px; font:1.1em bold italic; border-radius:.8em; } /*数字序号添加背景*/ .file_list li:nth-child(-1n+9):before{ content:"0" counter(section) "."; } /*文件列表实现隔行换色*/ .file_list>li:nth-of-type(odd) a{ background:#97CBFF; } /*奇数行背景色*/ .file_list>li:nth-of-type(even) a{ background:#F0F0F0; } /*偶数行背景色*/ .file_list>li>a:hover{ opacity:0.6;color:#000; } /*鼠标悬浮在上的链接不透明度颜色*/ .file_list>li>a:hover{ -webkit-animation-name: fontbulger; -webkit-animation-duration: 1s;/*表示动画持续的时间*/ -webkit-animation-iteration-count:3;/*表示动画要重复几次*/ -webkit-animation-direction: alternate;/*表示动画的方向*/ -webkit-animation-timing-function: ease-out;/*表示动画使用的时间曲线*/ -webkit-animation-delay: 5;/*表示开始动画之前的延时*/ } @-webkit-keyframes fontbulger { 0% { -webkit-transform: translate(-50px, 0px); }/*動畫位移開始位置*/ 100% { -webkit-transform: translate(0px, 0px); }/*動畫位移結束位置*/ } .file_list li span:before{content:".";color:black;} /*文件扩展名前缀*/ .file_list span{ color:black; font-weight:bolder;font-size:100%; float:right; padding:0 5px; position:relative;bottom:35px; /*文件扩展名下移*/ } /*文件扩展名*/
代码演示
免流QQBrowser_V2.3.0.17
(jar)
免流UCBrowser_V8.3.0.133
(jar)
给你爱人的心 Valentine v1.2.0
(jar)
CSS代码(样式十一)
.file_list { margin: 1px; padding: 1px; } .file_list li { text-align: left; padding: 10px; border: 1px solid #ffffff; height: 26px; line-height: 26px; margin: 10px 10px; overflow: hidden; } .file_list li a { color: #383838; font-size: 16px; } .file_list li a:hover { font-weight: bloder; color: #fff; background: #000; padding: 0 8px; transition: 0.4s; }
代码演示
网页日期时间的多种JS显示方式
状态栏数字钟,状态栏时间显示
获取当前时间,显示“上午”、“下午”
«Newer
Older»
Comment:
Name:
Back to home
Subscribe
|
Register
|
Login
|
N