<style type="text/css">
<!--
h1 {font-size: 12px;color: #09f; display : inline}
h2 {font-size: 12px;color: #f00; display : inline}
-->
</style>
<h1>我要变成一行...
网站开发代码
ASP,PHP,JSP,JS,ASP.NET,DIV,CSS等网站建设相关技术
December 7, 2008, 2:23 am
实现DIV圆角的JavaScript代码
实现DIV圆角的JavaScript代码
以下说明将以一个半径为20像素圆角的DIV为例.
解压您下载的文件, 上传到您的站点。然后复制代码如下和黏贴它入您的网页的顶头部分。如果您保存了文件到该网页目录外
的任何地...
以下说明将以一个半径为20像素圆角的DIV为例.
解压您下载的文件, 上传到您的站点。然后复制代码如下和黏贴它入您的网页的顶头部分。如果您保存了文件到该网页目录外
的任何地...
阅读全文 | 分类: CSS |
December 5, 2008, 7:36 pm
div根据高度css分页
<html>
<head>
<style type="text/css">
#frameContent{
width:500px; /*调整显示区的宽*/
height:300px; ...
<head>
<style type="text/css">
#frameContent{
width:500px; /*调整显示区的宽*/
height:300px; ...
阅读全文 | 分类: CSS |
December 5, 2008, 2:23 pm
让一个层处于父DIV层的右下角
<style type="text/css">
.box1 {border:1px #cccccc solid;width:500px;height:200px;position:relative;}
.box2 {border:1px #f00 solid; width:198px; height:22px; position:absolute;botto...
.box1 {border:1px #cccccc solid;width:500px;height:200px;position:relative;}
.box2 {border:1px #f00 solid; width:198px; height:22px; position:absolute;botto...
阅读全文 | 分类: CSS |
December 4, 2008, 11:33 pm
很炫的div遮罩层浏览图片
使用方法:
1.head中加入
<script type="text/javascript" src="pic-js/prototype.js"></script>
<script type="text/javascript" src="pic-js/scriptacu...
1.head中加入
<script type="text/javascript" src="pic-js/prototype.js"></script>
<script type="text/javascript" src="pic-js/scriptacu...
阅读全文 | 分类: CSS |
December 4, 2008, 11:11 pm
css+javascript切换网页风格、皮肤并保存到cookie
javascript+css实时切换网页风格、皮肤并保存到cookie,效果不错
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&...
阅读全文 | 分类: CSS |
December 3, 2008, 10:14 pm
DIV-CSS网页布局:用CSS实现表单form布局
此篇文章体现 lable 与 clear 的用处。看下面代码与示例!
<style type=”text/css”>
label { float: left; width: 40px;}
form { margin:0px}
input { width: 180px; border:1px solid #808080}
text...
<style type=”text/css”>
label { float: left; width: 40px;}
form { margin:0px}
input { width: 180px; border:1px solid #808080}
text...
阅读全文 | 分类: CSS |
December 3, 2008, 10:13 pm
div-css布局:新闻列表过长溢出加…方法,溢出加省略号
div-css布局:新闻列表过长溢出加…方法
white-space:nowrap; text-overflow:ellipsis; overflow: hidden;这句可以完美的实现.
在做新闻列表时可能有些新闻标题过长.这时我们会采用隐藏溢出来解决.这种效果挺不错. ...
white-space:nowrap; text-overflow:ellipsis; overflow: hidden;这句可以完美的实现.
在做新闻列表时可能有些新闻标题过长.这时我们会采用隐藏溢出来解决.这种效果挺不错. ...
阅读全文 | 分类: CSS |
December 3, 2008, 10:04 pm
表单元素onfous()改变样式
表单元素onfous()改变样式 当表单内的文本框获取焦聚时其文件框的样式改变。看这句以为Cngothic当时会以为是在每个表单元素上面加一句JS。如:onfous=”..”.今个在织梦里看到一个不错例子便收录下来.有兴趣的朋友可...
阅读全文 | 分类: CSS |
December 3, 2008, 9:58 pm
CSS实现图片预载入
CSS:
#preloadedImages {
width: 0px;
height: 0px;
display: inline;
background-image: url(path/to/image1.png);
background-image: url(path/to/image2.png);
...
#preloadedImages {
width: 0px;
height: 0px;
display: inline;
background-image: url(path/to/image1.png);
background-image: url(path/to/image2.png);
...
阅读全文 | 分类: CSS |
网站目录
:: Copyright 2004-2006 PhpBlog.Cn. All Rights Reserved ::
