我有一个具有以下属性的输入变量文本:
<input type="text" style="font-style: italic; color:#808080; font-size: 16px; width: 510px;" id="categ" value="default" name="categ" onfocus="this.value = ''; this.style.color='black'; this.font_weight='normal'">
我想清除格式化样式onfocus。它会清除颜色和文本,但不会清除斜体字重。我也试过 font-weight 和 font.weight