标签:width png blog set base body hit 100% input
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>夜晚模式</title> <h4>护眼模式</h4> <script> function mySwitch() { var oBody=document.getElementById("myBody"); var oOnoff=document.getElementById("myOnOff"); if(oOnoff.src.match("bulbon")){ oOnoff.src="http://www.runoob.com/images/pic_bulboff.gif"; oBody.style.background="black"; oBody.style.color="white"; }else{ oOnoff.src="http://www.runoob.com/images/pic_bulbon.gif"; oBody.style.background="white"; oBody.style.color="black"; } } </script> </head> <body id="myBody"> <img id="myOnOff" onclick="mySwitch()" src="http://www.runoob.com/images/pic_bulbon.gif" width="40px"> <script>document.write(Date())</script> </body> </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MIS问答平台</title>
<style type ="text/css">
p{
color:red;
}
h1{
background-color:darkgreen;
}
.textblue{
color:blue;
}
#tt{
color:#FFD700;
}
</style>
<link rel="stylesheet" type="text/css" href="taobao.css">
<base href="http://sinaing.cn/dy/weather/main/index14/007/icons_32_y1/"target="_black">
<style...></style...>
</head>
<body>
<nav>
<a href=""><ing scr="w_02_08_00.png">首页</a>
<a href="http://www.gzcc.cn/">下载APP</a>
<input type="text" name="search">
<button type="submit">搜索</button>
<a href="">登录</a>
<a href="">注册</a>
</body> </html>
CSS
img{ width: 300px; } .img{ border:1px solid #FF60AF; width:180px; float:left; margin:3px; } .img img{ width:100%; height:auto; } .desc{ text-align:center; padding:3px; } .img:hover{ border:1px solid#8E8E8E; } .clearfloat{ clear:both; }
JS
标签:width png blog set base body hit 100% input
原文地址:http://www.cnblogs.com/123hyf/p/7777431.html