`
piperzero
  • 浏览: 3472407 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论
文章列表
font-style: inherit:继承 italic:斜体 normal:正常 oblique:偏斜体 font-size: xx-small: 取所有相对大小取值中最小的; x-small:仅大于xx-small的字体 small:默认的小字体 medium:默认值 large:默认的大字体 x-large:仅小于xx-large xx-large:最大的字体 text-decoration: inherit: 继承 none:无文本修饰,缺省设置 underline:下划线 overline:顶划线 line-through:删除线 blink:是 ...
字体名称属性(font-family) 这个属性设定字体名称,如Arial, Tahoma, Courier等。例句如下: .s1 {font-family:Arial} 演示示例 字体大小属性(font-size) 这个属性可以设置字体的大小。字体大小的设置可以有多种方式,最常用的就是pt和px(pixe ...
em:1em为当前字体font-size,一般浏览器默认为(16px); ex:以给定字体的小写字母x的高度为基准 px:像素,屏幕上的一个小方格 pt单位名称为点(Point),绝对长度单位一般老版本的table使用长度大小单位但是现在基本上没有使用。
<script type="text/javascript"> window.onload = function() { $(".jqzoom").jqueryzoom({ xzoom: 250, //设置放大 DIV 长度(默认为 200) yzoom: 250, //设置放大 DIV 高度(默认为 200) offset: 10, //设置放大 DIV 偏移(默认为 10) position: "right", //设置放大 DIV 的位置(默认为右边) preload: 1, len ...
thickbox使用 1.一张图片 描述: 这是ThickBox的一个简单实例,这个例子展示了在中放置一张图片(请看演示)。 说明: 创建一个link元素 (<a href>) 给创建的这个link元素一个class属性,其值是:thickbox (class="thickbox") 在h ...
<html> <head> <style type='text/css'> #theImage{ float:left; padding:5px 5px 5px 0; } </style> <script src="js/jquery-1.5.1.js" type="text/javascript"></script> <script type='text/javascript'> $(document).ready(function(){ ...
$(document).ready(function(){ $(".container").css("display","none"); $("#home").css("display","block"); function showViaLin(array){ array.each(function(){ $(this).click(function(){ var target=$(this).atrr('href'); $('.container ...
:after 伪元素在元素之后添加内容。 这个伪元素允许创作人员在元素内容的最后面插入生成内容。默认地,这个伪元素是行内元素,不过可以使用属性 display 改变这一点。 所有主流浏览器都支持 :after 伪元素,但对于IE来说,只有IE8以上版本支持。 h1:after { content:url(beep.wav); } 此样式会在每个 h1 元素之后播放一段声音: <style type="text/css"> h1:after {content:url(/i/w3school_logo_white.gif)} </style ...
<html> <head> <title>tab标签</title> </head> <style type='text/css'> *{ margin:0; padding:0; background-color:#ccc; } #main{ margin:30px auto; width:400px; height:300px; border:2px solid ; } #nav{ width:400px; height:20px; } #nav ul{ ...
将float:left; <style type='text/css'> li{ float:left; list-style-type:none; width:100px; margin:1px; background-color:silver; } .b{ display:none; } .bb:hover .b{ display:block; } </style> <ul> <li class='bb'>1 <ul class='b'> <li>11</li> ...
c语言文件读写 <wbr></wbr> 从文件编码的方式来看,文件可分为ASCII码文件和二进制码文件两种。 ASCII文件也称为文本文件,这种文件在磁盘中存放时每个字符对应一个字节,用于存放对应的ASCII码。ASCII码文件可在屏幕上按字符显示。 二进制文件是按二进制的编码方式来存放文件的。二进制文件虽然也可在屏幕上显示,但其内容无法读懂。 C系统在处理这些文件时,并不区分类型,都看成是字符流,按字节进行处理。输入输出字符流的开始和结束只由程序控制而不受物理符号(如回车符)的控制。 因此也把这种文件称作“流式文件”。 1、文件的打开与关闭 文 ...
<html> < head> < meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> < script type="text/javascript"> var flag = true; function getNum(num){ if(!flag){ document.getElementById('res').value = ''; flag = true; } document.g ...
<html> <head> <meta charset="utf-8"/> <style type="text/css"> body{margin:50px auto;padding:0;border:0; background-color:#ccffcc;} #main{width:450px;height:400px;margin:auto} #head{height:400px;background-color:#ccc} #head img{width:450px;height: ...
1、DOM对象转jQuery对象 普通的Dom对象一般可以通过$()转换成jQuery对象。 如:$(document.getElementById("msg")) 返回的就是jQuery对象,可以使用jQuery的方法。 2、jQuery对象转DOM对象 由于jQuery对象本身是一个集合。所以如果jQuery对象要转换为Dom对象则必须取出其中的某一项,一般可通过索引取出。 如: $("#msg")[0],$("div").eq(1)[0],$("div").get()[1],$("td& ...
(1)in()在某个范围(集合)之间 //获得 商品id 为 3, 5, 7 ,8 这几个商品的信息 select * from ecs_goods where goods_id in(3,5,7,9); (2)Between and 在两个值之间的数据 //查询价格在1000-1500之间的商品信息 select * from ecs_goods where shop_price between 1000 and 1500; (3)Order by排序 排序方法(升序ASC,降序DESC) //将获得的商品按照 价格 由高到低 排序 (4)limit限定获得数据的数量 // ...
Global site tag (gtag.js) - Google Analytics