1、电商:html样式集合

<span class="big"  style="text-decoration:line-through;">原价:¥{zlcms:articleField name="market_price"/}</span>

2、小手图标

<input />  

3、验证所预定数量是否大于库存或者计算总额,用onblur,onblur 事件会在对象失去焦点时发生。

<input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,''); if(this.value=='' || this.value=='0'){this.value='1';}" onblur="total('11')"  >

4、input 输入框一定为数字,输入非数字替换掉,初始值为1

<input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,''); if(this.value=='' || this.value=='0'){this.value='1';}" onblur="total('11')"  >

  

 

相关文章:

  • 2022-12-23
  • 2021-06-17
  • 2022-02-10
  • 2021-05-29
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2021-12-06
  • 2021-05-24
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案