码迷,mamicode.com
首页 >  
搜索关键字:red    ( 13693个结果
css引入方式优先级以及不同选择器的优先级区别
我们都知道css有3种基本设置方式即1、行内也叫嵌入式例如:<divstyle=‘background:red‘></div>2、内联式,在html文件中用style标签包裹着的例如:<html> <styletype=‘text/css‘> div{ background:red; } </style> </html>3、链接式,在htm..
分类:Web程序   时间:2015-04-07 19:53:27    阅读次数:222
HTML学习5
1.子选择器还有一个比较有用的选择器子选择器,即大于符号(>),用于选择指定标签元素的第一代子元素。如右侧代码编辑器中的代码:.food>li{border:1px solid red;}这行代码会使class名为food下的子元素li(水果、蔬菜)加入红色实线边框。任务我也来试试,把文字内容的“我...
分类:Web程序   时间:2015-04-07 15:32:18    阅读次数:133
object 插入元素,插入HTML页面
object标签用于定义一个嵌入的对象,包括:图像、音频、Java applets、ActiveX、PDF以及Flash。该标签允许您规定插入HTML文档中的对象的数据和参数,以及可用来显示和操作数据的代码。常用的功能:一、显示图片:[color=Red][/color]Picture As Obj...
分类:Web程序   时间:2015-04-07 15:25:30    阅读次数:189
Jquery中选择器整理
1.基本选择器 *:所有元素选择器 例如:$("*").css("border","3px solid red"),表示为网页中的所有元素增加一个Border的css #id:id选择器阿 每个id值必须是在一个文件中只能使用一次。如果一个以上的元素分配了相同的ID,查询将只选择该ID第一个...
分类:Web程序   时间:2015-04-07 11:51:24    阅读次数:144
LeetCode Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers ...
分类:其他好文   时间:2015-04-06 23:19:26    阅读次数:176
[LeetCode]Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integer...
分类:其他好文   时间:2015-04-06 11:29:06    阅读次数:121
1504061021-hd-Red and Black
Red and Black Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11542    Accepted Submission(s): 7185 Problem Description There is ...
分类:其他好文   时间:2015-04-06 11:28:31    阅读次数:269
Python面向对象编程
Color类从一个非常简单的类定义开始:class Color(object): '''An RGB color,with red,green,blue component''' pass关键字def用于告诉Python我们定义了一个新函数,关键字class则表明我们定义了一个新类。(object)这部分内容说的是,类Color是一种对象;文档字符串描述了Color对象的功能,pass...
分类:编程语言   时间:2015-04-05 23:40:53    阅读次数:443
css布局box-sizing使用
div{  box-sizing:border-box; width:200px; padding:20px; border:1px solid red; }   这段css的意思是说,div宽度为200px,边框为1px,左右空白边距是20px,时间内容宽度自适应,是200-2-20*2=158px;   如果box-sizing的值为content-box,说明设置的是内容区...
分类:Web程序   时间:2015-04-05 23:35:14    阅读次数:598
css基础知识+css选择符(元素选择符、关系选择符)
首先我先介绍在html网页中怎么使用导入css样式的方法 1、行内样式:行内样式使用css 2、页内样式:在head标签里设置 p{ color:red } 页内使用css样式 3、外部链接方式:首先你要先在外部准备好做好的css样式表 外部链接css样式表设置样式,要注意heaf="这里就是要导入css样式表的地址" 接下来我就像大家介绍css层叠样式 元素选择符:类选择符、...
分类:Web程序   时间:2015-04-05 14:42:14    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!