https://www.nationrise.com.tw/custom_142450.html
流量單位換算
流量單位換算
/* 專屬命名空間:避免與智邦全站 CSS 衝突 */
.nr-flow-container {
--primary-navy: #0f2b48;
--accent-blue: #1d63b8;
--bg-gray: #f8fafc;
--card-bg: #ffffff;
--text-dark: #1e293b;
--text-muted: #64748b;
--border-color: #e2e8f0;
--input-bg: #f8fafc;
--focus-ring: rgba(29, 99, 184, 0.15);
box-sizing: border-box;
width: 100% !important;
max-width: 100% !important;
margin: 0 auto;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.nr-flow-container * {
box-sizing: border-box;
}
/* 主卡片容器 */
.nr-flow-card {
background: var(--card-bg);
width: 100%;
padding: 24px 20px;
border-radius: 8px;
box-shadow: 0 2px 12px rgba(15, 43, 72, 0.05);
border: 1px solid var(--border-color);
}
/* 標題區塊 */
.nr-flow-header {
margin-bottom: 16px;
text-align: left;
}
.nr-flow-subtitle {
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 1.5px;
color: var(--accent-blue);
text-transform: uppercase;
margin-bottom: 4px;
}
.nr-flow-title {
font-size: 1.35rem;
color: var(--primary-navy);
font-weight: 700;
letter-spacing: -0.5px;
margin: 0;
padding: 0;
line-height: 1.3;
}
.nr-flow-desc {
font-size: 0.85rem;
color: var(--text-muted);
margin-top: 6px;
line-height: 1.4;
}
.nr-flow-divider {
height: 1px;
background-color: var(--border-color);
margin: 16px 0 20px 0;
}
/* 響應式網格:自動適應框頁寬度,小於 280px 時自動單欄 */
.nr-flow-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 16px;
width: 100%;
}
.nr-flow-group {
display: flex;
flex-direction: column;
width: 100%;
}
.nr-flow-group label {
font-size: 0.85rem;
font-weight: 600;
color: var(--primary-navy);
margin-bottom: 6px;
display: block;
}
.nr-flow-wrapper {
position: relative;
display: flex;
align-items: center;
width: 100%;
}
.nr-flow-wrapper input {
width: 100%;
height: 42px;
padding: 0 75px 0 12px;
font-size: 0.95rem;
font-weight: 600;
color: var(--text-dark);
background-color: var(--input-bg);
border: 1px solid var(--border-color);
border-radius: 6px;
outline: none;
transition: all 0.2s ease;
box-shadow: none;
}
.nr-flow-wrapper input:focus {
background-color: #ffffff;
border-color: var(--accent-blue);
box-shadow: 0 0 0 3px var(--focus-ring);
}
.nr-flow-unit {
position: absolute;
right: 8px;
font-size: 0.75rem;
font-weight: 700;
color: var(--accent-blue);
background-color: #e0f2fe;
padding: 4px 8px;
border-radius: 4px;
pointer-events: none;
user-select: none;
white-space: nowrap;
}
/* 按鈕容器修正:確保按鈕不跑位 */
.nr-flow-actions {
margin-top: 20px;
display: flex;
justify-content: flex-end;
width: 100%;
clear: both;
}
.nr-flow-btn-reset {
background-color: #ffffff;
color: var(--text-muted);
border: 1px solid var(--border-color);
padding: 8px 18px;
font-size: 0.85rem;
font-weight: 600;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
display: inline-block;
line-height: 1.2;
}
.nr-flow-btn-reset:hover {
background-color: var(--primary-navy);
color: #ffffff;
border-color: var(--primary-navy);
}
/* 說明區塊 */
.nr-flow-principle {
background-color: #f1f5f9;
border-left: 4px solid var(--accent-blue);
padding: 12px 16px;
border-radius: 0 6px 6px 0;
margin-top: 20px;
width: 100%;
}
.nr-flow-principle-title {
font-size: 0.75rem;
font-weight: 700;
color: var(--accent-blue);
letter-spacing: 1px;
margin-bottom: 4px;
}
.nr-flow-principle-text {
font-size: 0.8rem;
color: var(--text-muted);
line-height: 1.5;
}
PUMP ENGINEERING TOOL
流量單位換算器
輸入任一流量單位數值,系統將自動連動換算其他常用工程單位。
立方米 / 小時 (m³/h)
CMH
公升 / 分鐘 (L/min)
LPM
美制加侖 / 分鐘
GPM(US)
英制加侖 / 分鐘
GPM(UK)
立方英呎 / 分鐘 (ft³/min)
CFM
重新計算 / 清除
01 / CONVERSION BASIS
常用基準換算對照:• 1 CMH (m³/h) = 16.667 LPM (L/min)• 1 CMH ≈ 4.403 GPM (US) | 1 CMH ≈ 3.666 GPM (UK)• 1 CMH ≈ 0.5886 CFM
const factors = {
CMH: 1,
LPM: 1 / 60 * 1000,
GPM_US: 4.402868,
GPM_UK: 3.666154,
CFM: 0.588578
};
const inputs = {
CMH: document.getElementById('CMH'),
LPM: document.getElementById('LPM'),
GPM_US: document.getElementById('GPM_US'),
GPM_UK: document.getElementById('GPM_UK'),
CFM: document.getElementById('CFM')
};
Object.keys(inputs).forEach(key => {
inputs[key].addEventListener('input', (e) => convert(key, e.target.value));
});
function convert(sourceKey, val) {
if (val === '' || isNaN(val)) {
resetForm();
return;
}
const numVal = parseFloat(val);
const baseCMH = numVal / factors[sourceKey];
Object.keys(inputs).forEach(key => {
if (key !== sourceKey) {
const result = baseCMH * factors[key];
inputs[key].value = Number.isInteger(result) ? result : parseFloat(result.toFixed(4));
}
});
}
function resetForm() {
Object.keys(inputs).forEach(key => {
inputs[key].value = '';
});
}
https://www.nationrise.com.tw/
國楊興業 Stairs Pump | Stairs泵浦 | 宏奇泵浦專營
01 / CONVERSION BASIS
常用基準換算對照:
• 1 CMH (m³/h) = 16.667 LPM (L/min)
• 1 CMH ≈ 4.403 GPM (US) | 1 CMH ≈ 3.666 GPM (UK)
• 1 CMH ≈ 0.5886 CFM