<html>
<head>
<meta http-equiv="Content-Type" content="text/html charset=UTF-8">
<title>
RunJS 演示代码
</title>
<style>
.content{
background-color:black
width:50px
height:50px
border-radius:90px
line-height:50px
color:white
text-align:center
cursor:pointer
float:left
-webkit-user-select:none
-moz-user-select:none
-ms-user-select:none
user-select:none
}
</style>
<script>
onload=function(){
document.body.onclick=function(e){
e = e || window.event
var ta = e.target || e.srcElement || e.toElement
if(ta.id == "c"){
this.appendChild(ta.cloneNode(true))
}
}
}
</script>
</head>
<body>
<div class='content' id="c">
点我
</div>
</body>
</html>
给select加个样式,改变它的效果就好了<style>
select{
width:300px
border:#CCC solid 1px
border-radius:2px
font-size:18px
color:#CCC
line-height:35px
height:35px
}
</style>
<body>
<select>
<option>select Box
</option>
</select>
</body>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)