<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<select name="select" id="select">
<option value="1">1sfasfafa</option>
</select>
<select name="select2" id="select2" style=" width:100px; height:22px;">
<option value="1">1sfasfafa</option>
<option value="2">sfasfafa</option>
</select>
<script language="javascript">
var fxycObjs = document.getElementsByTagName("select");
for(var i=0;i<fxycObjs.length;i++){
fxycObjs[i].style.height = "33px";
fxycObjs[i].style.width = "133px";
}
</script>
</body>
</html>
今天帮一个网友写个JS控制congos中的日期提示的大小。这里主要是通过cognos的HTML空间来实现了。也没有去找是否有更好的办法。