我已經在下面包含了一個jfiddle。我試着設置我的css代碼來輸入[type = text],這樣樣式就不會影響提交和重置按鈕,但有些錯誤,我不確定是什麼。我一直在嘗試使用類似於:input [type = text]到我的css中,但它不起作用
<link css="" href="common/css/complianceCSS.css" media="screen" rel="stylesheet" type="text/css" />
<link css="" href="../privacy/internal/css/turquoise.css" media="screen" rel="stylesheet" type="text/css" />
<h1 class="allpages">Questions or Concerns about Compliance Issues?</h1>
<h3>We welcome all compliments and constructive criticism!</h3>
<form class="webform" action="http://hsc.unm.edu/scripts/cfmailform/cfmailer.cfm" method="post">
<!--Required hidden operators-->
<input name="recipient" type="hidden" value="[email protected]" />
<input name="subject" type="hidden" value="HSC Compliance Office Email Form" />
<input type="hidden" name="cc" value="[email protected]" />
<input name="redirect" type="hidden" value="http://hsc.unm.edu/admin/compliance/ThankYOU.html" /> <!-- Field validation for the user -->
<label for "name">Your Name (optional):</label>
<input name="name" type="text" id="name" value="" /><br />
<label for "name">Your E-mail (Optional):</label>
<input name="mail" type="text" value="" /><br>
<label for "name">Comment:</label>
<textarea name="comment" value="" ></textarea>
<p>
<input type="submit" value="Submit" />
<input type="reset" value="Reset" />
</form>
不能看到你的提琴任何這樣的。另外,在你的小提琴中有太多的html,很難知道 – DevelopmentIsMyPassion
「某些事情是錯誤的」不是對任何問題的可用描述。你應該清楚地說明會發生什麼,以及你期望發生什麼。 JSFiddle鏈接很好,但它應該*補充問題的文本。 – Jon
我想我想說的是,我不想提交和重置按鈕的大小與輸入字段相同。我試圖做一些類似input [type = text]的事情,以便只有文本受到影響,而不是輸入提交或輸入重置,但它不起作用。 – user2196989