testhtml.html 2.3 KB
Newer Older
1
17360059320 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,minimal-ui">
<style>
div{
   background-repeat:no-repeat;
  background-size:100%100%;
  background-origin:content-box;
  width:200px;
  height:200px;
  border:1px solid red;
}
div
{
  border:2px solid;
  border-radius:25px;
  box-shadow:10px10px5px#888888;
  border-image:url(border.png)3030 round;
}
.cc1211{
  writing-mode: vertical-rl;
  letter-spacing: 1px;
}
.cc1211 b{
  text-combine-upright: all;
  margin: 5px 0;
} 
</style>
</head>
<body>
cc百川's avatar
cc百川 已提交
32
    <button onclick="goPage('bottom')">到达底部 ddddddddd</button><br>
1
17360059320 已提交
33 34
<div>
  
cc百川's avatar
cc百川 已提交
35
 <section>123</section>
1
17360059320 已提交
36 37
</div>
<div class="cc1211">
C
cc百川 已提交
38 39 40 41 42 43 44 45
 <h1>测试</h1>
  <p>窗前明月光</p>
  <p>疑是地上霜</p>
  <p>举头望明月</p>
  <p>低头思故乡</p>
  <p><b>296</b></p>
  <p>流行<b>276</b></p>
  <p>供世人参考<b>268</b></p>
1
17360059320 已提交
46 47 48 49 50 51 52 53 54 55 56 57
</div>
<div class="cc1210">
<form></form>
<img src="file:///C:/Users/Administrator/Pictures/1.jpg" width="200"></img>
</div>
<div class="cc1209">

</div>

	<marquee scrolldelay="200" direction="right">Welcome!</marquee>
	
	<marquee scrolldelay="200" direction="left">Welcome1!</marquee>
C
cc百川 已提交
58
<marquee onMouseOut="this.start()" onMouseOver="this.stop()">onMouseOut="this.start()  onMouseOver="this.stop()</marquee>
1
17360059320 已提交
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105

<strong >ssssssssss</strong >
    <iframe src="http://127.0.0.1:8082/odoc/odoc/index_c.jsp">ssssssssssss</iframe>
	<div>sss</div>
	<address></address>
	<span>1</span>
	<wbr/>
	<span>1</span>
	<embed/>
	<span>1</span>
	<img/>
  <span>1</span>
  <button onclick="goPage('top')">到达顶部</button>

	<script>
window.onload=function(){
console.log("onload")
}
window.onunload=function(){
console.log("onunload")
}
window.onbeforeunload=function(){
console.log("onbeforeunload")
}
document.onkeydown=(keyParams)=>{
  const {code, keyCode, key } = keyParams;
  console.log(code, keyCode, key );
}
goPage =(type) =>{
  let  keyCode,code;
  if(type == "top") {
    keyCode = 36;
    code = "Home";
  } else if(type == "bottom"){
    keyCode = 35;
    code = "End"
  } else {
    console.log("暂不支持该类型"+type);
    return;
  }
  let ev =   new KeyboardEvent('keydown', { ctrlKey: true,keyCode,code});
  document.dispatchEvent(ev);
}

</script>
</body>

cc百川's avatar
cc百川 已提交
106
</html>