网站建设资讯

NEWS

网站建设资讯

javascript横线,js横线标签

javascript 怎么在单词上打上横线

!DOCTYPE HTML

创新互联是一家专业提供中山企业网站建设,专注与成都网站制作、成都做网站、外贸营销网站建设HTML5、小程序制作等业务。10年已为中山众多企业、政府机构等服务。创新互联专业网络公司优惠进行中。

html

head

meta charset=UTF-8

titleYuGiOh/title

style type="text/css"

/style

script type="text/javascript"

onload = function ()

{

hello.innerHTML = "del" + hello.innerHTML + "/del";

}

/script

/head

body

span id="hello"Hello/span

/body

/html

如何用JavaScript代码做出当鼠标放在连接下时,链接出现一个横线?

this.style.text-decoration='underline';

改为

this.style.textDecoration='underline';

想用javascript作一条浮动的横线来看书

你是用javascript写桌面应用程序?那我帮不了你javascript只能写网页脚本

html

head

meta http-equiv="Content-Type" content="text/html; charset=gb2312" /

title读书有害身体健康/title

script language="javascript"

var x,y;

function init(){

x = document.getElementById("L1").style.pixelTop;

y = document.getElementById("L1").style.pixelLeft;

}

function fly(){

document.getElementById("L1").style.pixelTop = x + document.body.scrollTop;

document.getElementById("L1").style.pixelLeft = y + document.body.scrollLeft;

}

window.onscroll=fly;

/script

style type="text/css"

!--

* {

margin: 0px;

padding: 0px;

}

body {

background-color: #9DD2EA;

margin-top: 20px;

margin-left: 10px;

}

table {

font-family: "宋体";

font-size: 12px;

line-height: 40px;

color: #333333;

text-decoration: none;

width: 100%;

}

--

/style

/head

body onload="init()"

table width="800" border="0" cellspacing="0" cellpadding="0"

tr

td

在此处添加内容

/td

/tr

/table

div id="L1" style="position:absolute;

left:0px;

top:327px;

width:1280px;

z-index:1;

background-color:#C71B86};"

/div

/body

/html


本文题目:javascript横线,js横线标签
当前网址:http://cdweb.net/article/dscdodc.html