您正在查看 "网页设计" 分类下的文章
2008-05-19 13:46
今天看到很多网站都变成黑白 我把网页的css打开发现实现起来其实很简单
html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }
大家只要把上面代码嵌入css文件就可以了
|
2008-02-03 02:41
加入透明Flash代码
<embed src="Flash地址"; width="400" height="300" quality="high" wmode="transparent" align="right" style="position: absolute; left:0; top:0">
此代码为插入透明flash代码,其中 width="" 为flash的宽,height="" 为 flas的高,left: 为从左向右移的位置,top: 为从上向下移的位置
加入鼠标代码
<style type="text/css">body{cursor:url |
2008-01-30 20:23
1.带有文章标题的(autof06n.swf)
<script type="text/javascript">
<!--
var focus_width=176
var focus_height=225
var text_height=18
var swf_height = focus_height+text_height
var
pics=’http://img1.qq.com/auto/pics/518/518243.jpg|http://img1.qq.com/auto/pics/517/517558.jpg|
http://img1.qq.com/auto/pics/517/517672.jpg|http://img1.qq.com/auto/pics |
2008-01-03 10:50
一直在项目里面实用JS里的replace来替换字符串,其中一个功能是根据html模版来构建一个完整的html代码。类似如下方式(代码1):
var template = ' <div class="block" id="{itemId}"><div class="title" title="{title}">{title}</div><div class="description">{description}</div></div>';
而在js里面先创建一个数据对象(代码2):
|
2007-12-17 15:43
<html>
<head>
<title>标题<title>
</head>
<body>..........文件内容..........
</body>
</html>
1.文件标题
<title>..........</title>
2.文件更新--<meta>
【1】10秒后自动更新一次
<meta http-equiv="refresh" content=10>
【2】10秒後自动连结到另一文件
<meta http-equiv="refresh" content="10;URL=欲连结文件之URL">
3.查询用表单--<isindex>
若欲设定查询栏位前的提 |
2007-10-01 23:55
你正在学习CSS布局吗?是不是还不能完全掌握纯CSS布局?通常有两种情况阻碍你的学习:
第一种可能是你还没有理解CSS处理页面的原理。在你考虑你的页面整体表现效果前,你应当先考虑内容的语义和结构,然后再针对语义、结构添加CSS。这篇文章将告诉你应该怎样把HTML结构化。
另一种原因是你对那些非常熟悉的表现层属性(例如:cellpadding,、hspace、align="left"等等)束手无策,不知道该转换成对 应的什么CSS语句。
当你解决了第一种问题,知道了如何 |
2007-10-01 23:55
CSS布局常用的方法: float : none | left | right 取值: none : 默认值。对象不飘浮 left : 文本流向对象的右边 right : 文本流向对象的左边 它是怎样工作的,看个一行两列的例子 xhtml: 以下是引用片段: 这里是第一列 这里是第二列 /*这是违背web标准意图的,只是想说明在它下面的元素需要清除浮动*/ CSS: 以下是引用片段:#wrap{ width:100%; height:auto;} #column1{ float:left; width:40%;} #column2{ float:right; width:60%;} .clear{ clear:both;} position : static | absolute | fixed | r |
2007-10-01 23:54
<%
'声明取得目标信息的函数,通过XML组件进行实现。
Function GetURL(url)
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, False
.Send
GetURL = bytes2bstr(.responsebody)
'对取得信息进行验证,如果信息长度小于100则说明截取失败
if len(.responsebody)<100 then
response.write "获取远程文件 <a href="&url&" target=_blank>"&url&"</a> 失败。"
response.end
end |
2007-07-29 22:50
<html>
<head>
<title>CSS制作多种链接样式实例</title>
<style type="text/css">
<!--
a:link { color: #CC3399; text-decoration: none}
a:visited { color: #FF3399; text-decoration: none}
a:hover { color: #800080; text-decoration: underline}
a:active { color: #800080; text-decoration: underline}
a.red:link { color: #FF0000; text-decoration: none}
a.red:visited { color: #FF0000; text-decoration: none}
a.red:ho |
|
|