码迷,mamicode.com
首页 >  
搜索关键字:background    ( 6339个结果
选中文本颜色
::selection{ background-color: #00f; color: white; }::moz-selection{ background-color: #00f; color: white; }::webkit-selection{ background-color: #00f...
分类:其他好文   时间:2014-07-12 00:04:42    阅读次数:172
web前端开发规范文档
规范说明此为前端开发团队遵循和约定的代码书写规范,意在提高代码的规范性和可维护性。基本准则符合web标准,语义化html,结构表现行为分离,兼容性优良.页面性能方面,代码要求简洁明了有序,尽可能的减小服务器负载,保证最快的解析速度。总规范1.忽略(Omit)协议:如background:url(ht...
分类:Web程序   时间:2014-07-09 19:47:50    阅读次数:304
【转】CSS Sprites教程大全(使用方法、工具介绍)
什么是CSS SpriteCSS Sprite 又叫CSS精灵,是目前大型网站中经常运用的图片处理方式。它的原理很简单,将网站上零散的小图片(或图标)整合在一张大图上,再用CSS中“background-image”属性来定位图片的X/Y轴位置,从而减轻服务器对图片的请求数量,提高网页加载速度。因为...
分类:Web程序   时间:2014-07-09 17:03:29    阅读次数:339
(转)Css样式兼容IE6,IE7,FIREFOX的写法
根据FF和IE对一些符号识别的差异,我们可以单独对FF以及IE定义样式,例子:区别IE6与FF: background:orange;*background:blue; 区别IE6与IE7: background:green!important;background:blue; 区别IE7与...
分类:Web程序   时间:2014-07-09 16:52:26    阅读次数:211
CSS Sprites
在css开发中有一件非常令人头疼的东西:拼背景图片。比如一个项目中有三种按钮:button-normal, button-submit, button-cancel。一般的方式是个人手动在PSD中新建一个较大的画布,把三个按钮分别移到该画布上,最后通过background-position定位。这个...
分类:Web程序   时间:2014-07-09 13:30:16    阅读次数:211
DIV+CSS
css左右两列布局:高度100%,左侧float,右侧自动宽度(无float,overflow为auto)、白色字体:color:#FFFFFF;不错的蓝色背景:background:#0099CC;浅一点的不错的背景色: background:#B0CFFA;段落缩进: text-indent:2...
分类:Web程序   时间:2014-07-09 13:25:47    阅读次数:237
Prototype and Constructor in JavaScript
The concept of prototype in JavaScript is very confusing, especially to those who come with a C++/JAVA/... background. As an OOP langauge, JavaScript is very different from the languages with class. I...
分类:编程语言   时间:2014-07-09 12:55:02    阅读次数:253
poj 2488 A Knight's Journey
A Knight's Journey Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 29280   Accepted: 10039 Description Background  The knight is getting bored of seeing the...
分类:其他好文   时间:2014-07-09 12:03:01    阅读次数:293
canvas——画板
注意部分:canvas的height和width不能再css中设定,应该在html中设定,否则会影响页面的分辨率。效果图:图1:代码css:#canvas{ cursor: crosshair;}button{ width: 80px;}.yellowBtn{ background...
分类:其他好文   时间:2014-07-08 22:31:32    阅读次数:223
异步加载脚本和样式
<script> window.onload=function(){ loadScriptURL(‘script/head.js‘) loadScriptcode(‘alert("hahaha");‘); loadStyleURL(‘a.css‘); varcsscode=‘#box{background:red}‘; loadStyleCODE(csscode); } functionloadScriptURL(url){ varscript=document.createElement("sc..
分类:其他好文   时间:2014-07-08 09:47:27    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!