- 浏览: 122609 次
- 性别:
- 来自: 上海
最新评论
文章列表
我们用 A 包含一个 SPAN 标签来实现此效果:预览
<a class="button" href="#"><span>按钮文字</span></a>
<style type="text/css">
a.button {
background:url("bg_button_a.gif") no-repeat scroll right top transparent;
color:#444444;
display:block;
fl ...
垂直对齐在 Firefox 和 IE7 等最新浏览器中,已经不是什么难事,但是IE6下使用 DIV 布局,垂直对齐则依然是个非常令人头痛的问题;虽然 IE 7 已经越来越普及,但是 IE6 依然占了很大的份额,所以,还是让我们一起看看解决方法吧!
<style type="text/css">
/* 说明:IE 6 下 DIV 垂直居中对齐*/
.fixVerticalCenterOuter {
width:300px;
height:200px;
border:1px solid #ccc;
text-align:center;
...
介绍一下Gilder/Levin 的方法
<h2>
<span></span>Hello World
</h2>
<style type="text/css">
h2 {
width: 150px;
height: 35px;
position: relative;
}
h2 span {
background: url(hello_world.gif) no-repeat;
position: absolute;
width: 100%;
heig ...
table数据列表传统table的数据列表代码如下所示。我们要为每行添加tr标签,然后还要在其中为标题和数据各加一个td标签,由于标签都是td,想要添加样式的话还要为每个td添加class属性。
<table>
<tbody>
<tr>
<td class="title">Name:</td>
<td class="text">Squall Li</td>
</tr>
<tr>
...
http://blog.html.it/layoutgala/
<html>
<head>
<title>Ajax入门</title>
<style type="text/css">
<!--
body{
font-size:13px;
background-color:#e7f3ff;
}
form{
padding:0px; margin:0px;
}
input{
border-bottom:1px solid #007eff; /* 下划线 */
font-family:Arial, Helvetica, sans-serif; ...
<html>
<head>
<style type="text/css">
<!--
p{
font-family:Arial;
font-size:15px;
}
-->
</style>
<script language="javascript" event="onload" for="window">
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM&qu ...
<html>
<head>
<title>Member List</title>
<style>
<!--
.datalist{
border:1px solid #0058a3;
font-family:Arial;
border-collapse:collapse;
background-color:#eaf5ff;
font-size:14px;
}
.datalist caption{
padding-bottom:5px;
font:bold 1.4em;
text-a ...
<html>
<head>
<title>Member List</title>
<style>
<!--
.datalist{
border:1px solid #0058a3;
font-family:Arial;
border-collapse:collapse;
background-color:#eaf5ff;
font-size:14px;
}
.datalist caption{
padding-bottom:5px;
font:bold 1.4em;
text-a ...
<?xml version="1.0" encoding="gb2312"?>
<?xml-stylesheet type="text/css" href="14-7.css"?>
<poem>
<title>静夜思</title>
<author>唐 李白</author>
<verse>
床前明月光<br/>
疑是地上霜<br/>
举头望明月<br/>
...