html 表格细边框处理
样式表如下:
table#border{
border-top:#000 1px solid;
border-left:#000 1px solid;
}
table#border td{
border-bottom:#000 1px solid;
border-right:#000 1px solid;
}
然后再要加边框的html文件中加上
<table id="border" border="0" cellspacing="0">
相关文档:
我们常常把一组集合放到每个页面的下拉框中,这里利用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= ......
label 的title属性相当于tooltip,鼠标放上去会显示title属性的值
title,label,entitle,name的区别
title 题目,标题
label (商品/产品)标签
entitle 动词,给...称号,给...权利
name 姓名,名称
alt属性和title属性
原文:http://www.456bereastreet.com/archive/200412/the_alt_and_title_attributes/
翻译 ......
传智博客_html
1. HTML语法基础
< > 空格 " 商标 版权
< > " ® ©
<p></p>段落标记
<br>换行标 ......
这两个操作默认是被屏蔽了的,需要手动拦截按键消息然后处理。
如果嵌入HTML的窗口拿不到WM_KEYDOWN这样的消息,就只好直接在消息循环里拦截了:
{
while (0 != (r = GetMessage(&msg, NULL, 0, 0))) {
if (r == -1) {
break;
}
if (CheckIfDealCopyPaste(msg)) {
......