<html>
<head>
<style>
.english{font-family:Times New Roman}
.chinese{font-family:"楷体_GB2312"}
</style>
<body>
<table>
<tr><td><span class="english">Hello</span>,<span class="chinese">您好</span></td></tr>
<tr><td><span class="english">Hello</span>,<span class="chinese">您好</span></td></tr>
<tr><td><span class="english">Hello</span>,<span class="chinese">您好</span></td></tr>
</table>
</body>
</html>
我帮那位兄弟补全示例代码吧
js:function change1(obj){
obj.innerHTML="china"
}
function change2(obj){
obj.innerHTML="中国"
}
html:
<a href="#" onmouseover="change1(this)" onmouseout="change2(this)">
中国
</a>
手敲的,亲测通过。求满意答案,亲~!
<!DOCTYPE html><html>
<head lang="en">
<meta charset="UTF-8">
<title>DIV盒子布局</title>
<link rel="stylesheet" type="text/css" href="BoxCss.css">
</head>
<body>
<!--点击隐藏/显示IDV-->
<input type="button" onclick="DivShow()" />
<div id="123" class="bodytop" style="display: none">
<div class="bodytop-content">
</div>
</div>
<div class="bodycenter">
<div class="bodycenter-image"></div>
<div class="bodycenter-subnav"></div>
<div class="bodycenter-content"></div>
</div>
<div class="bodyfooter">
<div class="bodyfooter-content"></div>
<div class="bodyfooter-subnav"></div>
</div>
<script language="JavaScript">
function DivShow()
{
var iDiv = Document.getElementById("123")
if(iDiv)
{
if(iDiv.style.display=="block")
{
iDiv.style.display="none"
}
else
{
iDiv.style.display="block"
}
}
}
</script>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)