1.文字过长显示省略号(....)  white-space: nowrap;overflow: hidden;text-overflow: ellipsis; 

2.获取当前的ID : 

<asp:HiddenField runat="server" ID="hiddenOrderId" />

$('#<%:hiddenOrderId.ClientID%>').val();

 3.使用checkbox外面有文字,最好用label包含,这样点击文字也可以选中,用户体验好。

<label><input type="checkbox"/> 选中</label>

4.Js 根据条件,创建css

(function () {
 var url = window.location.search;
 var from = (url.indexOf("from=9") >= 0) ? 8 : 0;
 if (from == 8) {
     var style = document.createElement('link');
     style.href = 'css/ltest.css';
     style.rel = 'stylesheet';
     style.type = 'text/css';
     document.getElementsByTagName('head').item(0).append(style);
 }
})();

 6.#e2e2e只有5位 

 要么3位要么6位 

5位当然错呀  颜色都是6位  

e2e2e2

#ef2 和 #eeff22是一样的,是它的简写 

 

相关文章:

  • 2021-11-09
  • 2021-12-31
  • 2021-07-13
  • 2021-08-10
  • 2022-12-23
  • 2022-02-18
  • 2021-12-29
  • 2022-01-13
猜你喜欢
  • 2021-12-22
  • 2022-12-23
  • 2022-01-10
  • 2021-07-21
  • 2022-12-23
相关资源
相似解决方案