网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

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横线标签
当前URL:http://bjjierui.cn/article/dscdodc.html

其他资讯