HTML CSS标签
<html >
<body style="margin:0;overflow:hidden">
<div>
<table style="width:100%;height:100%">
<!--<tr>
<td>
<div style="" align="center" >
here is header ling
</div>
</td>
</tr>-->
<tr>
<td style="height:100%;">
<div style="height:100%;overflow:auto;">
<div style="width:60px;height:150;background-color:red">
sadlfajsdl
</div>
</div>
</td>
</tr>
<tr>
<td align="right">
<div style="position:absolute;top:auto;bottom:2px;right:18px;">
&nb
相关文档:
浏览器越来越多,不同的浏览器,不同的版本在页面的渲染上都各不相同。这让网页开发人员很头疼,为了能兼容各个浏览器,人们挖掘出了很多 CSS Hack。下面进行一下总结,如果还有其他的 CSS Hack 欢迎提供。
一) 针对 IE 的 Hack
大部分 CSS Hack 都是针对 IE 的,这是用于我们的 IE "坚强"所致,尤其是 IE6。
#test {
......
<mce:style type="text/css"><!--
#summary{word-wrap:break-word;width:500px;margin: 0px;padding: 0px;};
.formIn th{white-space: nowrap;}
.formIn{ margin-left: 90px;}
--></mce:style><style type="text/css" mce_bogus="1"> #summary{word-wrap:break-word;width:50 ......
我们常常把一组集合放到每个页面的下拉框中,这里利用struts1的html:optionsCollection可以省很多事。
举个例子:
写一个公共静态方法:
public static Collection<LabelValueBean> getAllType() {
Collection<LabelValueBean> col = new ArrayList<LabelValueBean>();
col.add(new LabelValueBean( ......
一、img+文字 在一个div 里面如何居中对齐?
img和文本是两种不同的节点 所以用的方法也不一样
文字主要依靠 父节点的行高来居中
而img需要的是自身的垂直中齐属性
div {line-heiht:25px;height:25px;}
div img {vertical-align:middle;}
例如:
<div id="buttons">
<img src= ......
标记或参数
定 义
<A>
连结标记
<ADDRESS>
地址标记(斜体效果)
<AREA>
连结区域标记(设定各连结区域)
alink
点击连结时的样式。例:alink="#FF0000"
align
水平方向摆放位置。例:align="center"
alternate
来回走动,例:behavior=alternate
alt
在连结中插入文字说明。例:alt=" ......