<li><img>图片间有空隙的解决方法
摘要:直接加样式img{vertical-align:bottom; display:block}当然在某些情况下无效,比如我要加三个图片,上中下,中间的图片是设为背景,发现用此方法无效,只是上和中的图片空隙没了,而下与中之间还存在,方法很简单,把vertical-align:bottom改成top,可根据自己遇到的不同情况来设vertical-align的参数方法一:img{vertical-align:top; display:block}<style>#l1 {float:left;background:#000;}#l1 ul li {list-style:none;paddin
阅读全文
posted @
2011-03-29 10:15
FreeSpider
阅读(603)
推荐(0)
javascript控制不同行不同颜色
摘要:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> New Document </TITLE><META NAME="Generator" CONTENT="EditPlus"><META NAME="Author" CONTENT=""><META NAME="Keywords&quo
阅读全文
posted @
2011-03-23 16:02
FreeSpider
阅读(391)
推荐(0)
js左右滚动实例
摘要:<DIV id="demo" style="OVERFLOW: hidden; WIDTH: 50px;"><TABLE><TR><TD id="demo1"><table width="150"><tr><td width="130">1</td><td width="130">2<...
阅读全文
posted @
2010-11-23 10:41
FreeSpider
阅读(5192)
推荐(0)
html中添加flash代码
摘要:<div style="z-index:-1"> <!--1.设置FLASH为底层--> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v...
阅读全文
posted @
2010-10-14 09:57
FreeSpider
阅读(1920)
推荐(0)
在css中为背景图片添加链接
摘要:在做页面时候,有时难免会把图片图片做成背景,但是又想加个链接,可以采用正面的办法解决。#logo { width:249px; height:62px; background-image:url(images/logo.gif);}#logoa{display:block;width:249px;height:62px;cursor:hand; }然后在<html>里加入以下代码<...
阅读全文
posted @
2010-08-17 14:12
FreeSpider
阅读(18556)
推荐(0)
css几种选择器举例
摘要:1.class选择器 <html> <head> <title>class选择器</title> <style type="text/css"> <!-- .one{ color:red; /* 红色 */ font-size:18px; /* 文字大小 */ } .two{ color:green; ...
阅读全文
posted @
2009-12-27 16:21
FreeSpider
阅读(4209)
推荐(0)
HTML里使用CSS 的几种方式?
摘要:1.直接添加在HTML的标识符(tag)里 < Tag style="properties"> 网页内容< /tag> 例如: <p style="font-family:Geneva, Arial, Helvetica, sans-serif; font-size:9px; color:#ff9900">CSS</p> 这种方法虽然简单...
阅读全文
posted @
2009-12-26 15:59
FreeSpider
阅读(3621)
推荐(0)