bootstrap的btn超过了限制页面媒体选择
2014-05-21 21:59
337 查看
今天在使用bootsrap时发现bootstrap纯粹的引用btn设置100%后会出现超出了盒子模型,这一点让我很郁闷,后来思考良久发现有一个属性是把display:设定为inline-block;导致超出范围,经过思考将他改为auto;即可。或者直接就拿掉了。
今天发现bootstrap的版本号不同会影响图标。本用了bootstrap3后改成2.3发现图标不能显示。
识别媒体的宽度:
@media screen and (max-width:
600px) {
选择器 { 属性:属性值; }
}
<link="stylesheet"
media="only screen and (max-device-width:240px)"
href="android240.css"
type="text/css" />
/*360px的宽度*/
<link
rel="stylesheet"
media="only screen and (min-device-width:241px) and (max-device-width:360px)"
href="android360.css"
type="text/css" />
/*480px的宽度*/
<link
rel="stylesheet"
media="only screen and (min-device-width:361px) and (max-device-width:480px)"
href="android480.css"
type="text/css" />
今天发现bootstrap的版本号不同会影响图标。本用了bootstrap3后改成2.3发现图标不能显示。
识别媒体的宽度:
@media screen and (max-width:
600px) {
选择器 { 属性:属性值; }
}
<link="stylesheet"
media="only screen and (max-device-width:240px)"
href="android240.css"
type="text/css" />
/*360px的宽度*/
<link
rel="stylesheet"
media="only screen and (min-device-width:241px) and (max-device-width:360px)"
href="android360.css"
type="text/css" />
/*480px的宽度*/
<link
rel="stylesheet"
media="only screen and (min-device-width:361px) and (max-device-width:480px)"
href="android480.css"
type="text/css" />
相关文章推荐
- 更改bootstrap-datetimepicker弹出日期选择框只能在下方的限制
- [FAQ17435]插入两张卡,选择总是询问。非常快速的连续点击“快速拨号、最近、联系人”正上方的最近联系人,进行拨号,出现一次“拨号失败,已超过限制”后,就一直不能拨号。
- 页面中的图片超过规定的大小就按原图片大小缩小,不超过的就按原样的JS处理方案 选择自 WeekZero 的 Blog
- Flask学习笔记-使用bootstrap-datepicker实现页面日期选择
- bootstrap在 刷新页面,tab选择页面不会改变。
- bootstrap-datepicker限定可选时间范围 一、应用场景 实际应用中可能会根据日期字段查询某个日期范围内的数据,则需要对日期选择器可选时间进行限制, 如:开始时间不能大于结束时间,
- Struts2文件上传 超过大小限制无法跳转至指定input页面问题,浏览器提示连接已重置?根本原因
- 限制页面中的复选框至少选择一个
- bootstrap datetimepicker 时间段选择限制
- ASP.NET四种页面导航方式之比较与选择
- 在页面上,限制某区域尺寸,添加滚动条
- ASP.NET四种页面导航方式之比较与选择
- 在页面中控制媒体流的起播点和播放长度
- WEB页面多语言支持解决方案 选择
- 一种简单方法实现页面导出(Excel)功能 选择自 xieyun1977 的 Blog
- 在页面中控制媒体流的起播点和播放长度
- 应用于web页面的日期(日历)时间选择器(控件)
- 在页面中控制媒体流的起播点和播放长度
- 在页面中控制媒体流的起播点和播放长度
- 为ASP.NET页面中的输入框“选择”值(代替直接输入)