元素自适应宽度、换行
来源:互联网 发布:ubuntu登录界面卡死 编辑:程序博客网 时间:2024/05/17 21:50
通过设置百分比和最小宽度来实现,放大可以均匀排列,缩小可以自动换行
#kpi_tb input{
width: 100px;
}
#kpi_tb .row{
margin:0px;
padding:0px;
width: 100%;
text-align:center;
display: inline-block;
position: relative;
}
#kpi_tb .col{
position:relative;
margin:0px;
padding:3px 0px;
display: inline-block;
}
</style>
</head>
<body id="maskDiv">
<table id="kpi_table"></table>
<div id="kpi_tb">
<span class="row">
<span class="col" style="width:17% ;min-width: 180px;">专题列表:<input id="subject_id" /></span>
<span class="col" style="width:14% ;min-width: 150px;">名称:<input id="priv_name" class="combo-text validatebox-text"/></div>
<span class="col" style="width:27% ;min-width: 280px;">查询时间:<input id="start_month"/> - <input id="end_month"/></span>
<span class="col" style="width:23% ;min-width: 240px;">排序字段:<input id="order_col" /><input id="desc_asc"/></span>
<span class="col" style="width:7% ;min-width: 70px;"><a id="search_btn" href="#" class="easyui-linkbutton" >查询</a></span>
</span>
</div>
</body>
</html>
#kpi_tb input{
width: 100px;
}
#kpi_tb .row{
margin:0px;
padding:0px;
width: 100%;
text-align:center;
display: inline-block;
position: relative;
}
#kpi_tb .col{
position:relative;
margin:0px;
padding:3px 0px;
display: inline-block;
}
</style>
</head>
<body id="maskDiv">
<table id="kpi_table"></table>
<div id="kpi_tb">
<span class="row">
<span class="col" style="width:17% ;min-width: 180px;">专题列表:<input id="subject_id" /></span>
<span class="col" style="width:14% ;min-width: 150px;">名称:<input id="priv_name" class="combo-text validatebox-text"/></div>
<span class="col" style="width:27% ;min-width: 280px;">查询时间:<input id="start_month"/> - <input id="end_month"/></span>
<span class="col" style="width:23% ;min-width: 240px;">排序字段:<input id="order_col" /><input id="desc_asc"/></span>
<span class="col" style="width:7% ;min-width: 70px;"><a id="search_btn" href="#" class="easyui-linkbutton" >查询</a></span>
</span>
</div>
</body>
</html>
0 0
- 元素自适应宽度、换行
- li 自适应宽度 自动换行
- 寻找自适应元素(3)-自动换行
- 按指定宽度填充文本内容,单词自适应换行
- span 固定宽度,内容自适应容器自动换行
- iOS label自适应宽度 左端对齐 自动换行
- button自适应宽度 并根据屏幕宽自动换行排列
- span 固定宽度,内容自适应容器自动换行
- 宽度自适应
- 自适应宽度
- 自适应布局---自适应宽度
- Div+css下HTML设计三列自适应宽度出现换行的解决办法
- HTML Table Tr自动换行、宽度自适应:table-layout:fixed 属性的解说
- ios 文字 控件 自适应 高度 宽度 CustomCell 自适应高度+uilabel自动换行+ UITextView 根据内容自动调整高度
- 图片宽度自适应浏览器宽度
- Vickate_iOS_UILable自适应宽度/自适应高度
- 安字符宽度换行
- td 限制宽度换行
- Android开发EditText不自动弹出键盘
- 无cygwin的cocos2dx之安卓环境
- 【cocos2d-x从c++到js】傀儡构造函数
- ASP.net 类库中获得当前路径的方法(非页面中)
- Activity与Service交互
- 元素自适应宽度、换行
- 为什么不去创业——Why to Not Not Start a Startup
- 调用WCF接口时出现“格式化程序尝试对消息反序列化时引发异常....”
- Android开发错误汇总
- ecshop中使用Jquery特效报错“b.replace is not a function”
- 【cocos2d-x从c++到js】使用cocos2d-console工具转换脚本为字节码
- What is the location of the directory of C header files that match your running kernel?
- JS阻止多次提交
- 【cocos2d-x从c++到js】使用FireFox进行JS远程调试