

.header{ text-indent:-9999px; background:url('someimage.jpg') no-repeat; height: 100px; /*dimensions equal to image size*/ width:500px;} 这是一个很好的SEO技巧,让你看到一个不错的花哨的图像,而不是简单枯燥的文字,但搜索引擎将只能看到文字。
.header{
text-indent:-9999px;
background:url('someimage.jpg') no-repeat;
height: 100px; /*dimensions equal to image size*/
width:500px;
}这是一个很好的SEO技巧,让你看到一个不错的花哨的图像,而不是简单枯燥的文字,但搜索引擎将只能看到文字。
不知道这算不算是一个作弊的行为。text-indent为正值意为文本块向右缩进长度,为复制意为文本块向左缩进长度。上面的效果是,将文字移出了浏览器的视野之内,但是搜索引擎会找得到。
#container{
height:auto !important;/*all browsers except ie6 will respect the !important flag*/
min-height:500px;
height:500px;/*Should have the same value as the min height above*/
}Internet Explorer不理解min-height属性,但这里的CSS技巧来完成,在IE浏览器。跨浏览器的最低高度(让IE支持min-height)
transparent_class {
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
}
line-height:30px; height:30px;
body{
width:980px;
margin:0 auto;
}
text-transform: capitalize;
font-variant:small-caps;
a img{ border:none; }
@font-face {
font-family: Blackout;
src: url("assests/blackout.ttf") format("truetype");
}input[type="text"] {
width: 200px;
}
onerror="javascript:this.src='../indexImages/daex03.jpg'"
在控件的同一行让文字垂直居中
#divSearch input {
vertical-align: middle;
}//获取传过来的参数值
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
