传智播客Java培训 HTML基础示例
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>实例1</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<!--图像地图示例-->
<img src="ex.jpg" mce_src="ex.jpg" usemap="#mymap" width=320 height=180 border=0 alt=图像地图>
<hr>
<map name=mymap>
<area shape="rect" mce_shape="rect" coords="0,0,80,180" mce_coords="0,0,80,180" href="#mark1" mce_href="#mark1"></area>
<area shape="rect" mce_shape="rect" coords="80,0,160,180" mce_coords="80,0,160,180" href="#mark2" mce_href="#mark2"></area>
<area shape="rect" mce_shape="rect" coords="160,0,240,180" mce_coords="160,0,240,180" href="#mark3" mce_href="#mark3"></area>
<area shape="rect" mce_shape="rect" coords="240,0,320,180" mce_coords="240,0,320,180" href="#mark4" mce_href="#mark4"></area>
</map>
<!--maarquee示例-->
<marquee behavior=alternate direction=right><font size=5 color=green>实例1</font></marquee>
<!--dl、dt、dd标签示例-->
<dl>
<dt><a name="content"><blockquote>目录</blockquote></a></dt>
<dd><a href="#mark1" mce_href="#mark1" link=blue>桃花庵歌</a></dd>
<dd><a href="#mark2" mce_href="#mark2" link=blue>将进酒</a></dd>
<dd><a href="
相关文档:
今天在如下代码中:
********************************************************
<p><font color="blue">操作步骤:1、选择输出可选项 2、查询 3、输出
<br>
************************************************** ......
1,int与bytes 转换
int转换成bytes
public
static
final
byte
[]
int2bytes
(
int
value
)
{
return
new
byte
[]
{
(
byte
)(
value
>>>
24
),
(
byte
)(
value
>>>
16
),
......
public static void CentreWnd(Shell shell){
int width = shell.getMonitor().getClientArea().width;
int height = shell.getMonitor().getClientArea().height;
int x = shell.getSize().x;
int y = shell.getSize().y;
if (x > width) {
shell.getSize().x = width;
}
if (y > height) ......
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
/**
* 求质数和,
* 如:
* sum(1)=2=2
* sum(2)=2+3=5
* sum(3)=2+3+5=10
* sum(4)=2+3+5+7=17
& ......