控制cms:CMSDropDownList的width
2024-08-29 21:50:27
查找了一下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">
最新文章
- c++ is_space函数
- int->;string-------------c
- Python - 动手写个ORM
- tcp 三次握手
- Android横屏竖屏切换的问题
- 面向对象与面向过程 $this的注意事项和魔术方法set和get
- 【SPFA】 最短路计数
- XAF学习笔记之 Upcasting
- SQL中的内连接外连接和交叉连接是什么意思?
- Linux下基于HTTP协议带用户认证的GIT开发环境设置
- java基础知识回顾之javaIO类--管道流PipedOutputStream和PipedIutputStream
- .net如何后台批量删除
- Vs2010 配置驱动的开发环境
- 使用Netsil监控Kubernetes上的微服务
- Android性能优化之TraceView和Lint使用详解
- 其他-pkuwc2019数学考试题目
- git基本操作1
- 谈谈tmpdir与innodb_tmpdir的区别和用处
- 常用python的标准库
- Tween animation