【发布时间】:2022-01-12 11:32:48
【问题描述】:
我只想选择前两个输入而不是最后两个。所以请帮我解决这个问题,并给出一个简短的例子,如果可能的话,不要选择
.converter .MainConversion input{
display: block;
margin: auto;
width: 30%;
font-size: 20px;
padding: 3px;
border: 0px;
font-family: Montserrat;
font-weight: 600;
border-radius: 20px;
margin-top: 10px;
margin-bottom: 30px;
text-align: center;
background-color: rgb(177, 177, 177);
}
<div class="converter">
<div class="MainConversion">
<div id="displayresult">
<h5 id="HeaderDisplay">Enter the Value</h5>
<p id="MistakeDisplay">Enter a width and height you want to convert for ????</p>
</div>
<label for="ScreenWidth">Screen Width</label>
<input type="text" name="ScreenWidth" id="ScreenWidth" placeholder="Enter the Width">
<label for="ScreenHeight">Screen Height</label>
<input type="text" name="ScreenHeight" id="ScreenHeight" placeholder="Enter the height">
<label for="PxtoVw" >Number of Vw units</label>
<input type="text" name="PxtoVw" id="PxtoVW" placeholder="Enter the Value">
<p id="PxtoVwResult"></p>
<label for="PxtoVh" >Number of Vh Units</label>
<input type="text" name="PxtoVh" id="PxtoVh" placeholder="Enter the Value">
<p id="PxtoVhResult"></p>
<button class="DeviceButton" onclick="Calculate()">Check</button>
<button class="DeviceButton" onclick="Clear()">Clear</button>
</div>
</div>
【问题讨论】:
-
请更详细地描述您想要实现的目标。你想
disable输入除前两个之外的所有输入吗?