我正在使用 ASP Web 窗体和 VB 后端创建太阳能光伏计算器。我只是看着我的代码,作为一个 VB.NET 开发新手,我只是想知道是否有办法做一些不同的事情,减少代码行数或类似的东西。这是y代码的一个繁琐部分:
Dim SR As Integer
'Store radiation value
If drpDwnRoofFacing.Text = "South" And drpAngleOfRoof.Text = "Horizontal" Then
SR = 933
ElseIf drpDwnRoofFacing.Text = "SE/SW" And drpAngleOfRoof.Text = "Horizontal" Then
SR = 933
ElseIf drpDwnRoofFacing.Text = "E/W" And drpAngleOfRoof.Text = "Horizontal" Then
SR = 933
ElseIf drpDwnRoofFacing.Text = "NE/NW" And drpAngleOfRoof.Text = "Horizontal" Then
SR = 933
ElseIf drpDwnRoofFacing.Text = "North" And drpAngleOfRoof.Text = "Horizontal" Then
SR = 933
ElseIf drpDwnRoofFacing.Text = "South" And …Run Code Online (Sandbox Code Playgroud) 有人可以帮我从HTML5 Boilerplate Initializser制作原始代码,让页脚贴在浏览器的底部,我已经尝试过网络示例中的所有代码庄园但不幸的是我认为锅炉板预定义的CSS会影响定位并且"坚持"页脚.
继承我的CSS:
/* =============================================================================
HTML5 Boilerplate CSS: h5bp.com/css
========================================================================== */
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; height: 100%;}
html, button, input, select, textarea { font-family: sans-serif; color: #222; }
body { margin: 0; font-size: 0.9em; line-height: 1.4; height: 100%;}
::-moz-selection { …Run Code Online (Sandbox Code Playgroud)