如何为表单添加边框?

时间:2017-09-08 14:54:12

标签: html css

如何向我尝试<border:2px;>的表单添加边框但是这不起作用,我也尝试在表单中添加背景图片但是没有成功我试过

.form-all {
background: url(url.jpg) no-repeat top left;
}

这是我的表格

&#13;
&#13;
form {
  border: 2px;
}
&#13;
<form name="myform" id="EmailForm" action="" method="post">
  <label> Number hours: </label>
  <Select class="form-control input-sm error" min="3" name="Hours" id="Hours" onChange="calculatePrice()" placeholder="<?php echo $RoomErr;?>">
<OPTION value="0">Select Number of Hours</OPTION>
<OPTION value="45">3 Hours</OPTION>
<OPTION value="60">4 Hours</OPTION>
<OPTION value="75">5 hours</OPTION>
<OPTION value="90">5 hours +</OPTION>
</select>
  <br>
  <br>
  <label>Would You Like Ironing? </label>
  <Select NAME="ironing" id="ironing" onChange="calculatePrice()" class="form-control input-sm error" placeholder="<?php echo $ironingErr;?>">
<OPTION value="0">Would you Like Ironing?</OPTION>
<OPTION value="8">Yes</OPTION>
	<OPTION value="0">No</OPTION>
	</select>
  <br><br> Your Estimated Quate: £<input class="transparent-input" type="text" id="PicExtPrice">
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:10)

border:2px solid #000;

或者,您可以用您喜欢的任何颜色替换#000。