【问题标题】:How to build a custom grid or find an existing one如何构建自定义网格或查找现有网格
【发布时间】:2016-04-15 17:43:32
【问题描述】:

这是来自 Silver Light 应用程序的网格。我正在用 ASP.NET MVC 编写另一个需要具有相同外观的应用程序,所以我问这是否可以在 Telerik 或 Bootstrap 或 jQuery UI 中找到?如果我必须完全定制它,那么我什至从哪里开始?

【问题讨论】:

    标签: jquery asp.net-mvc twitter-bootstrap telerik


    【解决方案1】:

    这是可以代表这种盒子的抽象标记。

    <div id="criteria_container" class="search_box">
      <div id="criteria_operations">
        <span id="criteria_add" class="criteria_op">+</span>
        <span id="criteria_subtract" class="criteria_op">-</span>
        <span id="criteria_swap" class="criteria_op">></span>
      </div>
      <div id="criteria_box">
        <div id="criteria_header">Search Criteria</div>
        <div id="criteria_results"></div>
      </div>
    </div>
    

    然后,作为开始的地方。

    虽然我没有级联任何 CSS 样式,但您可能想要。在您这样做之前,请注意许多人对样式的嵌套提出了质疑,因为semantic issue 和某些应用程序中的潜在低效率。

     #criteria_container {
       width: 600px;
       height: 100px;
       border: solid 1px black;
     }
    
     #criteria_operations {
       width: 10px;
       height: 100%;
       float: left;
       background-color: #aaaaaa;
       border: solid 1px black;
     }
    
     #criteria_header {
       text-align: center;
       background-color: #aaaaaa;
       border: solid 1px black;
     }
    
     .criteria_op {
     }
    
     #criteria_box {
       width: 588px;
       float: right;
     }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-17
      • 2013-08-13
      • 2012-02-09
      • 2012-03-04
      • 1970-01-01
      • 2016-08-30
      • 2011-08-13
      • 1970-01-01
      相关资源
      最近更新 更多