我们经常会遇到在页面中的图片按照我们自己的大小来显示,这样可以让页面看起来更规范一些。 比如我们要在页面种显示130160的图片,相当于我们将图片放入这样的一个相框那,超过的就缩放到这个框的大小,小的就原样显示。 我们这里有2种解决办法, 1,不按照比例的缩放 scriptlanguage = javascript function changeImg(mypic){ var xw = 130 ; var xl = 160 ; var width =

Posted at (07-12-25)Views(55)

运行代码框 style type=text/css!--#center {position:absolute;width:300px;height:60px;left:50%;top:50%;z-index:1;background-color:#000;color:fff;margin-left:-150px;margin-top:-32px}/style/headbodydiv id=center永远居中/div/body [Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

Posted at (07-12-25)Views(118)

用CSS构建iframe效果 iframe应用很普遍,通常的需求有两种: 1,获取iframe效果,就是带一个滚动条,可以省不少版面。 2,要嵌一个页面,实现框架链接。 如果不方便使用iframe,可以有如下解决方案: 第一种需求如果我们使用css布局来实现,即可以少一个页面,也可以提高效率。 第二种需求可以采用xmlhttp远程获取。 A. 直接模拟iframe 用层做容器 运行代码框 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitiona

Posted at (07-12-25)Views(50)

1、新建画布,选取椭圆工具,按SHIFT绘制一个圆形,再在圆形的内部绘制一个略小的椭圆,使用菜单对齐命令将两者居中对齐。      2、同时选中圆形和椭圆对象,选择菜单修改 组合路径 打孔命令,组合得到圆环图形。      3、选取矩形工具,在圆环中心位置绘制一个矩形框,同时选中两个对象,选择菜单修改 组合路径 联合命令。    4、使用钢笔工具,绘制如图所示的图形,用其对原图形进行打孔切割,得到字母e的基本形态。      5、绘制一个椭圆,选取缩放工具,将其旋转约45度。

Posted at (07-12-25)Views(29)

Css 防iframe挂马. 原页面中无iframe的,可以这样来. 代码: iframe{v:expression(this.src=about:blank,this.outerHTML='');} 这是将所有的iframe重定向了. 或者 代码: fuckiframe{ width:1px; overflow:hidden; text-overflow:clip; white-space: nowrap; clear: none; float: none; line-height: 0px;

Posted at (07-12-25)Views(90)

运行代码框 .shakeimage{position:relative} var rector=3var stopit=0 var a=1function init(which){stopit=0shake=whichshake.style.left=0shake.style.top=0}function rattleimage(){if ((!document.all&&!document.getElementById)||stopit==1)returnif (a==1){shake.sty

Posted at (07-12-24)Views(114)

阴影字体 style type=text/css !-- .style1 { color: #FF6600; font-weight: bold; } -- /style

Posted at (07-12-24)Views(28)

运行代码框 htmlheadtitleproducts/titleFCK:meta http-equiv=Content-Type content=text/html; charset=gb2312 //headbody bgcolor=#FFFFFF text=#000000 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 background=http://www.hanyan.cn/images/right_bg.jpgtable

Posted at (07-12-24)Views(53)