网页开发时常用的页面效果
1.弹出设定大小窗口:
实现window.open弹出窗口在屏幕中间
<div style=" width:100%; text-align:center;"><a href="#" onclick='javascript:window.open("<%# Eval("Link")%>?name=<%# Eval("OperationName")%>&id=<%# Eval("OperationID")%>","_blank", "height=510,innerHeight=510,width=688,innerWidth=688,top=" + ((window.screen.availHeight - 700) / 2) + ",left=" + ((window.screen.availWidth - 565) / 2) + ",toolbar=no,menubar=no,scrollbars=yes,resizeable=no,location=no,status=no");' target="_blank"><img src="../images/CostImg/<%# Eval("OperationID")%>.png" alt="" height="55px" width="55px" /></a></div>