/*
boilerplate.css
用dw6 新建流体网格布局,得到的CSS
好东西啊
*/
@charset "utf-8";
/*
/*
* HTML5 ✰ 样板
*
* 以下是诸多跨浏览器样式研究的结果。
* 内嵌致谢,非常感谢 Nicolas Gallagher、Jonathan Neal、
* Kroc Camen, 和 H5BP 开发团队和小组。
*
* 有关此 CSS 的详细信息: h5bp.com/css
*
* Dreamweaver 修改:
* 1. 高亮标记出选定部分
* 2. 删除媒体查询部分(我们在单独的文件中添加了自己的媒体查询部分)
*
* ==|== 规范化 ==========================================================
*/
/* =============================================================================
HTML5 显示定义
========================================================================== */
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
/* =============================================================================
基础
========================================================================== */
/*
* 1. 纠正正文字体大小使用 em 单位设置时,IE6/7 中的文本异常调整大小的问题
* 2. 强制在非 IE 中使用垂直滚动条
* 3. 防止在设备方向更改时调整 iOS 文本大小,而不需要禁用用户缩放: h5bp.com/g
*/
html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { margin: 0; font-size: 13px; line-height: 1.231; }
body, button, input, select, textarea { font-family: sans-serif; color: #222; }
/*
* 删除选定高亮部分的文本阴影: h5bp.com/i
* 这些选定内容声明必须有所区别
* 此外: 暗粉色!(或自定义背景颜色以符合您的设计)
*/
/* Dreamweaver: 如果您想要自定义选定高亮部分,请取消这些注释
*::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
*::selection { background: #fe57a1; color: #fff; text-shadow: none; }
*/
/* =============================================================================
链接
========================================================================== */
a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
/* 改善在所有浏览器中获取焦点和悬停时的可读性: h5bp.com/h */
a:hover, a:active { outline: 0; }
/* =============================================================================
排版规则
========================================================================== */
abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
/* 重新声明固定宽度字体系列: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }
/* 改善所有浏览器中预先格式化的文本的可读性 */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
/* 放置上标和下标内容,而不影响行高: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
/* =============================================================================
列表
========================================================================== */
ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }
/* =============================================================================
嵌入内容
========================================================================== */
/*
* 1. 改善在 IE7 中缩放时的图像质量: h5bp.com/d
* 2. 删除图像容器上的图像与边框之间的间隙: h5bp.com/e
*/
img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
/*
* 纠正 IE9 中未隐藏的溢出
*/
svg:not(:root) { overflow: hidden; }
/* =============================================================================
图
========================================================================== */
figure { margin: 0; }
/* =============================================================================
表单
========================================================================== */
form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
/* 指示“label”会将焦点移至相关联的表单元素 */
label { cursor: pointer; }
/*
* 1. 纠正 IE6/7/8/9 中非继承的颜色
* 2. 纠正 IE6/7 中显示异常的对齐
*/
legend { border: 0; *margin-left: -7px; padding: 0; }
/*
* 1. 纠正所有浏览器中非继承的字体大小
* 2. 删除 FF3/4 S5 Chrome 中的边距
* 3. 定义在所有浏览器中一致地垂直对齐显示
*/
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
/*
* 1. 将行高定义为正常,以匹配 FF3/4(使用 UA 样式表中的 !important 设置)
* 2. 纠正 IE6/7 中显示异常的内边距
*/
button, input { line-height: normal; *overflow: visible; }
/*
* 在“table”中重新加入内边距,以避免 IE6/7 中的交迭和空白问题
*/
table button, table input { *overflow: auto; }
/*
* 1. 显示手形光标,表示可以点击的表单元素
* 2. 允许 iOS 中可点击的表单元素的样式
*/
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
/*
* 一致的框大小和外观
*/
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
/*
* 删除 FF3/4 中的内边距和边框: h5bp.com/l
*/
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
/*
* 1. 删除 IE6/7/8/9 中的默认垂直滚动条
* 2. 仅允许垂直调整大小
*/
textarea { overflow: auto; vertical-align: top; resize: vertical; }
/* 用于表单验证的颜色 */
input:valid, textarea:valid { }
input:invalid, textarea:invalid { background-color: #f0dddd; }
/* =============================================================================
表格
========================================================================== */
table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }
/* ==|== 主要样式 =====================================================
作者:
========================================================================== */
/* ==|== 非语义的 helper 类 ========================================
请在进入此部分之前定义您的样式。
========================================================================== */
/* 用于图像替换 */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }
/* 同时在屏幕读取器和浏览器中隐藏: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }
/* 仅可视隐藏,但在屏幕读取器中可用: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
/* 扩展 .visuallyhidden 类以允许元素可在通过键盘浏览时成为焦点: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
/* 可视隐藏且在屏幕读取器中隐藏,但保留布局 */
.invisible { visibility: hidden; }
/* 包含浮动: h5bp.com/q */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
/* ==|== 打印样式 =======================================================
打印样式。
已内嵌以避免必要的 HTTP 连接: h5bp.com/r
========================================================================== */
@media print {
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* 黑白打印速度更快: h5bp.com/s */
a, a:visited { text-decoration: underline; }
a[href]:after { content: " (" attr(href) ")"; }
abbr[title]:after { content: " (" attr(title) ")"; }
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* 不显示图像链接或 javascript/内部链接 */
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
thead { display: table-header-group; } /* h5bp.com/t */
tr, img { page-break-inside: avoid; }
img { max-width: 100% !important; }
@page { margin: 0.5cm; }
p, h2, h3 { orphans: 3; widows: 3; }
h2, h3 { page-break-after: avoid; }
}
分享到:
相关推荐
总的来说,"001简单滚动视差"项目涵盖了HTML5的语义化标签、CSS3的定位、变换、过渡、动画以及媒体查询等核心概念,是学习前端开发,尤其是网页动态效果实现的一个很好的实战练习。通过分析和理解这个项目,开发者...
总的来说,这个压缩包包含的资源可以帮助学习者深入了解HTML和CSS在游戏开发中的应用,以及掌握HTML5的新特性,无论是对于想要制作简单的网页游戏,还是提升网页开发技能,都是有价值的资料。通过学习这些内容,...
《CSS3与HTML5在移动设计中的应用解析...从多媒体支持到响应式布局,从数据存储到离线应用,HTML5和CSS3已经成为了现代网页和移动应用开发不可或缺的部分。在未来,随着技术的不断演进,我们可以期待更多创新和可能性。
在移动端开发中,HTML5引入了一系列新的元素和API,旨在优化移动设备上的用户体验,而CSS3则带来了更强大的样式控制能力和响应式设计功能。 在移动端样式设计中,HTML5的新特性如`<meta name="viewport">`标签显得...
在IT行业中,`WebView`是一种常见且重要的组件,特别是在跨平台应用开发中。在这个场景下,我们关注的是基于Qt框架的`WebView`实现,也就是Qt浏览器。Qt是一个强大的C++库,提供了丰富的功能来构建桌面、移动甚至...
本资源包"移动互联网之路_(HTML5_CSS3_jQueryMobile)APP与移动网站设计从入门到精通源文件和最终文件.zip"提供了全面的学习材料,帮助初学者和进阶者掌握这些技能,打造卓越的移动用户体验。 首先,HTML5是现代...
通过合理的CSS编写,可以实现跨设备、跨浏览器的一致显示,并且提高页面加载速度。 3. JavaScript (JS):JavaScript是一种客户端脚本语言,用于实现网页的交互功能。在商务外贸专题模板中,可能包含了一些...
在"HTML5wrangle_HTML5_CSS3源码_"这个压缩包中,我们很可能会找到利用HTML5的新特性,尤其是拖放(drag and drop)功能来处理图片的示例代码。下面将详细探讨HTML5的拖放功能以及CSS3的相关应用。 首先,HTML5的...
总的来说,使用HTML5开发手机APP是一个综合性的过程,涉及到前端技术栈的多个层面,包括HTML5、CSS3、JavaScript、框架选择、性能优化和跨平台适配。尽管有一些挑战,但借助现代工具和框架,开发者可以高效地构建出...
### 移动浏览器内核与HTML5:深度解析与应用 #### 一、浏览器内核简介 浏览器内核,或称渲染引擎,是浏览器的核心组件,负责解析网页代码并将其转化为用户可识别的视觉界面。它主要处理HTML、CSS和JavaScript,...
- **Doug Rhoten**(InterFlow高级软件开发者)称赞本书能够轻松地引导读者使用HTML5和CSS3创建兼容所有浏览器的网站,并对未来标准和浏览器的发展进行了展望。 综上所述,《HTML5与CSS3:构建明日标准》不仅是一本...
《H1078:构建跨平台HTML手机电脑网站的前端技术详解》 ...通过学习和研究这个资源,开发者可以深入了解HTML5、CSS3和JavaScript的实践应用,以及如何利用它们创建出既美观又实用的移动端和桌面端网站。
总结来说,"30web_HTML手机电脑网站_网页源码移动端前端js效果_H5模板_自适应css源码ui组件.zip"这个资源包是一份全面的移动端Web开发实践材料,涵盖了HTML5模板、自适应CSS和JavaScript效果,以及可能的前端框架...
总的来说,这个压缩包包含的是一套完整的前端解决方案,集成了HTML5、CSS和JavaScript的最佳实践,适用于开发跨平台的自适应网站,同时为学习者提供了丰富的示例和参考资料。通过研究这些源码,开发者不仅可以提升...
该压缩包文件“837js_HTML手机电脑网站_网页源码移动端前端js效果_H5模板_自适应css源码ui组件.zip”包含了用于构建响应式、跨平台的手机和电脑网站的HTML源码、JavaScript效果和CSS样式。以下是这些元素的详细知识...
标题 "android > Phonegap_ html5_css3_jQuery" 暗示我们将探讨如何在 Android 上使用 PhoneGap 结合 HTML5, CSS3 和 jQuery 开发应用程序。下面是一些关键知识点: 1. **PhoneGap**: - PhoneGap 提供了一种跨...
HTML手机电脑网站_网页源码_移动端前端js效果_H5模板_自适应css样式ui组件.zip"这个压缩包文件,为我们提供了一个集成了这些关键技术的实际应用案例,让我们有机会深入研究和学习如何构建一个跨平台、响应式且交互...
这个压缩包对于学习和开发响应式、跨平台的网站非常有用,不仅提供了基础的HTML结构,还有适应不同设备的CSS样式和JavaScript功能。开发者可以通过研究和修改这些源码,提升自己的前端开发技能,或者直接应用于自己...
《H597:构建跨平台的HTML5移动端网站与前端UI组件》 在现代互联网技术领域,HTML5、CSS3以及JavaScript已经成为构建响应式、交互性强的网站和应用的基础。"H597国外_HTML手机电脑网站_网页源码_移动端前端js效果_...
在移动设备上,HTML5引入了许多新的元素和功能,如离线存储、媒体元素、表单控件等,提高了移动浏览器的兼容性和用户体验。H5模板通常指的是使用HTML5语法编写的网页模板,这些模板可以快速构建出符合现代网页标准的...