查找了一下kentico内部使用相关控件的代码,发现有2种方式,可以达到效果。

  • 在我们自己的css class定义的地方,在class前面加上.cms-bootstrap

.cms-bootstrap .DropDownList200 {width: 214px;border: #ababab 1px solid;text-align: left;}

示例

   <cms:CMSDropDownList ID="ddlDataType" runat="server" CssClass="DropDownList200">
  • 使用kentico内置的width相关的css class

.cms-bootstrap .input-width-15 {

  width: 48px;

}

.cms-bootstrap .input-width-20 {

  width: 80px;

}

.cms-bootstrap .input-width-40 {

  width: 112px;

}

.cms-bootstrap .input-width-60 {

  width: 192px;

}

.cms-bootstrap .input-width-100 {

  width: 320px;

}

.cms-bootstrap .input-width-82 {

  width: 264px;

}

.cms-bootstrap .input-width-58 {

  width: 176px;

}

示例

  <cms:CMSDropDownList ID="ddlDataType" runat="server" CssClass="input-width-100">

最新文章

  1. c++ is_space函数
  2. int-&gt;string-------------c
  3. Python - 动手写个ORM
  4. tcp 三次握手
  5. Android横屏竖屏切换的问题
  6. 面向对象与面向过程 $this的注意事项和魔术方法set和get
  7. 【SPFA】 最短路计数
  8. XAF学习笔记之 Upcasting
  9. SQL中的内连接外连接和交叉连接是什么意思?
  10. Linux下基于HTTP协议带用户认证的GIT开发环境设置
  11. java基础知识回顾之javaIO类--管道流PipedOutputStream和PipedIutputStream
  12. .net如何后台批量删除
  13. Vs2010 配置驱动的开发环境
  14. 使用Netsil监控Kubernetes上的微服务
  15. Android性能优化之TraceView和Lint使用详解
  16. 其他-pkuwc2019数学考试题目
  17. git基本操作1
  18. 谈谈tmpdir与innodb_tmpdir的区别和用处
  19. 常用python的标准库
  20. Tween animation

热门文章

  1. 路飞学城详细步骤 part2
  2. Iptables入门教程
  3. msp430入门学习40
  4. C51单片机头文件和启动文件
  5. IO流(1)-键盘录入学生信息(姓名,语文成绩,数学成绩,英语成绩),按照总分从高到低存入文本文件
  6. 【gradle】mac下 gradle默认本地仓库位置
  7. flask如何设置模板语言Jinjia?如何查看路由视图函数映射?
  8. TCP/IP Protocol Architecture
  9. Unity3d中制作异步Loading进度条所遇到的问题
  10. C指针——C语言手记