奇怪的边界在固定的邮件元素在Firefox 7.0.1 [英] Strange border on fixed postition elements in firefox 7.0.1
问题描述
有没有人知道如何摆脱这个问题,还是一个bug?
在我的固定页眉和页脚元素在Firefox中有一个奇怪的边框。 / p>
HTML
这是主页的html。
<!doctype html>
<! - paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ - >
<! - [if lt IE 7]> < html class =no-js ie6 oldielang =en>百分比抑制率ENDIF] - GT!;
<! - [if IE 7]> < html class =no-js ie7 oldielang =en>百分比抑制率ENDIF] - GT!;
<! - [if IE 8]> < html class =no-js ie8 oldielang =en>百分比抑制率ENDIF] - GT!;
<! - 考虑添加manifest.appcache:h5bp.com/d/Offline - >
<! - [如果gt IE 8]><! - > < html class =no-jslang =en> <! - 百分比抑制率数据ENDIF] - GT;!< HEAD>
< meta charset =utf-8>
<! - 使用.htaccess并删除这些行以避免边缘情况问题。
更多信息:h5bp.com/b/378 - >
< meta http-equiv =X-UA-Compatiblecontent =IE = edge,chrome = 1>
< title>我的Sitelocker!< / title>
< meta name =descriptioncontent =>
< meta name =authorcontent =>
< base href =http://sitelocker.local//>
<! - 移动视窗优化:j.mp/bplateviewport - >
< meta name =viewportcontent =width = device-width,initial-scale = 1>
<! - 将favicon.ico和apple-touch-icon.png放在根目录下:mathiasbynens.be/notes/touch-icons - >
<! - CSS:隐含媒体=全部 - >
<! - CSS通过ant构建脚本串联和缩小 - >
< link rel =stylesheettype =text / csshref =resource / css / grid.css/>
<! - [if IE 6]>< link rel =stylesheettype =text / csshref =resource / css / ie6.css/><![endif ] - GT;
<! - [if IE 7]>< link rel =stylesheettype =text / csshref =resource / css / ie.css/><![endif ] - GT;
< link rel =stylesheettype =text / csshref =resource / css / style.css>
< link rel =stylesheettype =text / csshref =resource / css / uniform.default.css>
< link href ='http://fonts.googleapis.com/css?family = Yellowtail'rel ='stylesheet'type ='text / css'>
< link href ='http://fonts.googleapis.com/css?family = Bangers'rel ='stylesheet'type ='text / css'>
< link type =text / css =stylesheethref =resource / css / smoothness / jquery-ui-1.8.2.custom.css/>
<! - - 结束CSS - >
<! - 更多关于< head>的建议这里:h5bp.com/d/head-Tips - >
<! - 所有的JavaScript都在底部,除了Modernizr / Respond。
Modernizr支持HTML5元素&功能检测; Respond是最小/最大宽度的polyfill CSS3媒体查询
为获得最佳性能,请使用自定义的Modernizr版本:www.modernizr.com/download/ - >
< script src =resource / js / libs / modernizr-2.0.6.min.js>< / script>
< / head>
< body>
< header id =mastheadclass =clearfix>
< div id =masthead-innerclass =container_12 clearfix>
< div id =logoclass =grid_6>
< img src =resource / img / logo.jpg/>
< / div><! - /#logo - >
< div id =toolsclass =grid_6>
< a href =#id =add-site-modal>添加网站< / a>
< ul id =top_menu>
< li>欢迎使用< strong> lemonfreshdesign< / strong>。< / li>
< li>< a href =http://sitelocker.local/account/account_settings>帐户< / a>< / li>
< li>< a href =http://sitelocker.local/account/sign_out>退出< / a>< / li>
< / ul><! - /#top_menu - >
< / div><! - /#tools - >
< / div><! - /#masthead-inner - >
< / header><! - /#masthead - >
< div id =mainrole =mainclass =container_12 clearfix>
< div id =main_inner>
< div id =ajaxLoadAni>
< img src =resource / img / ajax-loader.gifalt =Ajax Loading Animation/>
< span>正在载入...< / span>
< / div><! - /#ajaxLoadAni - >
< div id =siteholderclass =column grid_12 clearfix>
< / div><! - /#siteholder - >
< div id =delConfDialogtitle =确认>
< p>您确定吗?< / p>
< / div><! - /#siteholder - >
< div id =msgDialog>
< p>< / p>
< / div><! - /#siteholder - >
< div id =myModalclass =reveal-modal>
< form action =http://sitelocker.local/usersites/insert_sitemethod =postaccept-charset =utf-8class =addsite_form> < input id =account_idtype =hiddenvalue =1/>
< label for =site_title>< strong>网站名称:< / strong>< / label>
< input id =site_titletype =textmaxLength =25tabindex =1name =site_title/>
< label for =site_url>< strong>网站地址:< / strong>< / label>
< input id =site_urltype =texttabindex =2name =site_url/>
< label for =site_description>< strong>网站说明:< / strong>< / label>
< input id =site_descriptiontype =texttabindex =3name =site_description/>
< label for =site_category>< strong>网站类别:< / strong>< / label>
< input id =site_categorytype =texttabindex =4name =site_category/>
< input id =addsite_form_submittype =submitvalue =Add Sitename =submitclass =addsite_form_submittabindex =5/>
< / form>
< / div><! - /#myModal - >
< / div><! - /#main_inner - >
< / div><! - /#main - >
< footer id =footerclass =clearfix>
< div id =footer-containerclass =container_12 clearfix>
< div id =copyrightclass =grid_4>
& copy;我的SiteLocker 2011 |保留所有权利
< / div><! - /#版权 - >
< div id =benchmarkingclass =grid_4>
在0.0533秒内呈现的页面
< / div><! - /#benchmarking - >
< div id =category-selectclass =grid_4>
< form>
< select style =opacity:0;>
< option value =option1>类别< / option>
< option value =option2>选项2< / option>
< option value =option3>选项3< / option>
< / select>
< / form>
< / div><! - /#category-select - >
< / div><! - /#footer-container - >
< / footer><! - /#footer - >
<! - 底部的JavaScript用于快速页面加载 - >
<! - 抓取Google CDN的jQuery,带有协议相对URL;如果离线回落到本地 - >
< script src =// ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js\">< ;; script>
< script> window.jQuery || document.write('< script src =resource / js / libs / jquery-1.6.2.min.js>< \ / script>')< / script>
<! - 脚本通过ant构建脚本串联和缩小 - >
< script defer src =resource / js / libs / jquery-ui-1.7.2.custom.min.js>< / script>
< script defer src =resource / js / plugins.js>< / script>
< script type =text / templateid =readTemplate>
< div class =scroll-content-item dragbox clearfixid =dragbox $ {site_id}>
< h2 class =h2handle>< a href =$ {site_url}> $ {site_title}< / a>< span class =close> < a href =http://sitelocker.local/usersites/delete_site/$ {site_id}id =$ {site_id}class =deleteBtn>< img src =resource / img / closepanel。 PNG>< / A>< /跨度>< / H2>
< div class =dragbox-content>
< p>< a class =sitelinkhref =$ {site_url}?> title =$ {site_title}>< img src =http://immediatenet.com/t/l?Size=1024x768&URL=${site_url}alt =$ {site_title}title = $ {SITE_TITLE}/>< / A>< / p为H.
< / div>
< div class =dragbox-footer>
< p>在:$ {site_category}< / p>
< / div>
< / div>
< / script>
< script defer src =resource / js / script.js>< / script>
< script>
//显示ajax加载器动画
$('#ajaxLoadAni').fadeIn('slow');
$('a#viewqr')。click(function(e){
e.preventDefault();
$('div#qr')。reveal({
动画:'fadeAndPop',// fade,fadeAndPop,none
animationspeed:300,//动画速度有多快
closeonbackgroundclick:true,//如果你点击后台将模态关闭?
} );
});
< / script>
<! - 结束脚本 - >
<! - 将UA-XXXXX-X更改为您网站的ID - >
< script>
window._gaq = [['_setAccount','UAXXXXXXXX1'],['_ trackPageview'],['_trackPageLoadTime']];
Modernizr.load({
load:('https:'== location.protocol?'// ssl':'// www')+'.google-analytics.com / ga.js '
});
< / script>
<! - 提示IE 6用户安装Chrome Frame。如果您要支持IE 6,请将其删除。
chromium.org/developers/how-tos/chrome-frame-getting-started - >
<! - [if lt IE 7]>
< script src =// ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js\">< t; / script>
< script> window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})< / script>
<![endif] - >
< / body>
< / html>
CSS
这是主要的布局CSS文件主页
/ *
* HTML5✰Boilerplate
*
*接下来是对跨浏览器造型的研究成果很多。
*信贷留在线,非常感谢Nicolas Gallagher,Jonathan Neal,
* Kroc Camen,以及H5BP开发团队。
*
*有关此CSS的详细信息:h5bp.com/css
*
== == | == normalize ============= =============================================
* /
/ * =================================== ==========================================
HTML5显示定义
=============================================== =========================== * /
文章,旁边,细节,figcaption,图,页脚,标题,hgroup,nav,section {display:block; }
音频,画布,视频{display:inline-block; *显示:内联; * zoom:1; }
audio:not([controls]){display:none; }
[hidden] {display:none; }
/ * ======================================= ======================================
Base
=== ================================================== ===================== * /
/ *
* 1.在IE6 / 7中正确调整文本大小font-size使用em单位设置
* 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;行高:1.231; }
body,button,input,select,textarea {font-family:sans-serif;颜色:#222; }
$ b / *
*删除选中的文本阴影高亮显示:h5bp.com/i
*这些选择声明必须是单独的
*另外:hot pink ! (或自定义背景颜色以匹配您的设计)
* /
:: - moz-selection {background:#fe57a1;颜色:#fff; text-shadow:none; }
:: selection {background:#fe57a1;颜色:#fff; text-shadow:none; }
/ * =================================== ==========================================
链接
================================================= ========================= * /
a {color:#00e; }
a:visited {color:#551a8b; }
a:hover {color:#06e; }
a:focus {outline:thin dotted; }
$ b / *提高所有浏览器的可读性: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;保证金:1em 0;填充:0; }
ins {background:#ff9;颜色:#000;文字修饰:无; }
mark {background:#ff0;颜色:#000; font-style:italic; font-weight:bold; }
/ * Redeclare monospace字体家族:h5bp.com/j * /
pre,code,kbd,samp {font-family:monospace,monospace; _font-family:快递新,等宽; font-size:1em; }
$ b / *提高所有浏览器中预格式化文本的可读性* /
pre {white-space:pre;白色空间:预包装;单词包装:分词; }
q {quotes:none; }
q:before,q:after {content:;内容:无; }
small {font-size:85%; }
/ *在不影响行高的情况下放置下标和上标内容:h5bp.com/k * /
sub,sup {font-size:75%; line-height:0;位置:相对; vertical-align:baseline; }
sup {top:-0.5em; }
sub {bottom:-0.25em; }
/ * =================================== ==========================================
列表
================================================= ========================= * /
ul,ol {margin:1em 0;填充:0 0 0 40px; }
dd {margin:0 0 0 40px; }
nav ul,nav ol {list-style:none; list-style-image:none;保证金:0;填充:0; }
/ * =================================== ==========================================
嵌入式内容
================================================ ========================== * /
/ *
* 1.缩放时改善图像质量在IE7中:h5bp.com/d
* 2.删除图像容器上的图像和边界之间的空白:h5bp.com/e
* /
img {border:0 ; -ms-interpolation-mode:bicubic; vertical-align:middle; }
$ b $ * b $ b *正确的溢出不隐藏在IE9中
* /
svg:not(:root){overflow:hidden; }
/ * =================================== ==========================================
数字
================================================= ========================= * /
图{margin:0; }
/ * =================================== ==========================================
表格
================================================= ========================= * /
form {margin:0; }
fieldset {border:0;保证金:0;填充:0; }
$ b $ * *表示'label'会将焦点移到关联的表单元素* /
label {cursor:pointer; }
$ b / *
* 1.在IE6 / 7/8/9
*中无法继承的正确颜色2.在IE6 / 7
* /
legend {border:0; * margin-left:-7px;填充:0; }
$ b / *
* 1.正确的字体大小不会在所有浏览器中继承
* 2.删除FF3 / 4 S5 Chrome
*中的页边距3.定义在所有浏览器中一致的垂直对齐显示
* /
按钮,输入,选择,textarea {font-size:100%;保证金:0; vertical-align:baseline; * vertical-align:middle; }
$ b / *
* 1.定义行高正常匹配FF3 / 4(在UA样式表中使用!important设置)
* 2.显示正确的内部间距奇怪在IE6 / 7
* /
按钮,input {line-height:normal; *溢出:可见; }
$ b $ * b $ b *在表格中重新引入内部空格以避免IE6 / 7
* /
表格按钮中的重叠和空白问题,表格输入{* overflow:auto; }
$ b $ * b $ b * 1.为可点击的表单元素显示手形光标
* 2.允许iOS中可点击的表单元素的样式
* /
按钮,输入[type =button],输入[type =reset],输入[type =submit] {cursor:pointer; -webkit-appearance:button; }
$ b / *
*一致的盒子大小和外观
* /
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;方块大小:内容框; }
input [type =search] :: - webkit-search-decoration {-webkit-appearance:none; }
$ b $ * / *
*在FF3 / 4中删除内部填充和边框:h5bp.com/l
* /
button :: - moz -focus-inner,input :: - moz-focus-inner {border:0;填充:0; }
$ b / *
* 1.在IE6 / 7/8/9
*中删除默认垂直滚动条2.只允许垂直调整大小
* /
textarea {overflow:auto; vertical-align:top;调整大小:垂直; }
$ b $ *表单有效性的颜色* /
input:valid,textarea:valid {}
input:invalid,textarea:invalid {background-color:#f0dddd; }
/ * =================================== ==========================================
表
================================================= ========================= * /
table {border-collapse:collapse; border-spacing:0; }
td {vertical-align:top; }
/ * == | ==主要样式============================ =========================
作者:
=============== ================================================== ========= * /
body {
background:url(../ img / background.png)repeat;
font-size:100%;
}
/ * =================================== ==========================================
header
================================================= ========================= * /
#masthead {
background:url(../ img / header.gif )repeat-x;
-webkit-box-shadow:0px 0px 10px 0px rgba(0,0,0,1);
-moz-box-shadow:0px 0px 10px 0px rgba(0,0,0,1);
box-shadow:0px 0px 10px 0px rgba(0,0,0,1);
height:54px;
位置:固定;
宽度:100%;
top:0;
z-index:1000;
text-shadow:1px 1px 2px#000000;
filter:dropshadow(color =#000000,offx = 1,offy = 1);
}
/ * --------------------------------------- --------------------------------------- * /
#logo {
height:54px;
line-height:50px;
}
#logo img {
padding:0px 15px 0px 0;
background:url(../ img / header-sep.png)no-repeat right;
}
/ * ----------------------------------- ------------------------------------------- * /
#工具{
text-align:right;
}
#tools ul {
float:right;
}
#tools ul li {
display:inline;
}
/ * ======================================= ======================================
main
=== ================================================== ===================== * /
#main .dragbox {
margin:20px 15px;
padding:10px;
width:207px;
background-color:rgba(0,0,0,.2);
position:relative;
border:1px solid#4e4e4e;
-webkit-box-shadow:0px 0px 10px 0px#000000;
-moz-box-shadow:0px 0px 10px 0px#000000;
box-shadow:0px 0px 10px 0px#000000;
float:left;
}
/ * --------------------------------------- --------------------------------------- * /
#main .dragbox h2 {
border-bottom:1px solid #CCCCCC;
font-size:.8em;
padding:0;
保证金:0;
背景:#7b7b7b; / *旧的浏览器* /
背景:-moz-linear-gradient(顶部,#515151 0%,#303030 100%); / * FF3.6 + * /
背景:-webkit渐变(线性,左上,左下,颜色停止(0%,#515151),颜色停止(100%,#303030)); / * Chrome,Safari4 + * /
背景:-webkit-linear-gradient(顶部,#515151 0%,#303030 100%); / * Chrome10 +,Safari5.1 + * /
背景:-o-linear-gradient(top,#515151 0%,#303030 100%); / * Opera11.10 + * /
background:-ms-linear-gradient(top,#515151 0%,#303030 100%); / * IE10 + * /
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr ='#515151',endColorstr ='#303030',GradientType = 0); / * IE6-9 * /
背景:线性渐变(顶部,#515151 0%,#303030 100%); / * W3C * /
padding:0px 12px;
cursor:move;
font-family:'cabin';
border-top:薄实体#777777;
border-left:瘦固体rgba(255,255,255,.25);
border-right:瘦固体rgba(255,255,255,.25);
border-bottom:单薄#1a1a1a;
text-shadow:1px 1px 0px#606060;
color:#000000;
font-weight:bold;
text-transform:大写;
line-height:2.4em;
}
#main .dragbox h2 a {
text-decoration:none;
color:#000000;
#main .dragbox h2 a:hover {
text-shadow:1px 1px 0px rgba(0,0,0,1);
颜色:#aadb02;
}
#main .dragbox h2 span.close {
float:right;
}
/ * --------------------------------------- --------------------------------------- * /
.dragbox-content {
背景:#fff;
min-height:100px;
border-left:1px solid#a3a3a3;
border-right:1px solid#a3a3a3;
}
.dragbox-content p {
margin:0;
}
/ * --------------------------------------- --------------------------------------- * /
#main .dragbox-页脚{
border-bottom:1px solid #CCCCCC;
font-size:0.8em;
padding:0;
保证金:0;
背景:#7b7b7b; / *旧的浏览器* /
背景:-moz-linear-gradient(顶部,#7b7b7b 0%,#4d4d4d 100%); / * FF3.6 + * /
背景:-webkit渐变(线性,左上,左下,色彩停止(0%,#7b7b7b),色彩停止(100%,#4d4d4d)); / * Chrome,Safari4 + * /
background:-webkit-linear-gradient(top,#7b7b7b 0%,#4d4d4d 100%); / * Chrome10 +,Safari5.1 + * /
背景:-o-linear-gradient(top,#7b7b7b 0%,#4d4d4d 100%); / * Opera11.10 + * /
background:-ms-linear-gradient(top,#7b7b7b 0%,#4d4d4d 100%); / * IE10 + * /
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr ='#7b7b7b',endColorstr ='#4d4d4d',GradientType = 0); / * IE6-9 * /
背景:线性渐变(顶部,#7b7b7b 0%,#4d4d4d 100%); / * W3C * /
padding:6px 12px;
cursor:move;
font-family:'cabin';
border-bottom:薄实体rgba(255,255,255,.25);
border-left:瘦固体rgba(255,255,255,.25);
border-right:瘦固体rgba(255,255,255,.25);
border-top:none;
text-shadow:1px 1px 0px rgba(255,255,255,.25);
颜色:#0c0c0c;
font-weight:normal;
}
#main .dragbox-footer p {
margin:0;
}
/ * --------------------------------------- --------------------------------------- * /
#ajaxLoadAni {
背景:#3A3A3A;
颜色:#fff;
display:none;
font-weight:bold;
位置:固定;
top:0;剩余
:40%;
padding:8px;
width:106px;
z-index:9999;
}
#ajaxLoadAni span {
float:right;
margin:2px 0 0 0;
}
/ * --------------------------------------- --------------------------------------- * /
.ui-widget-内容{
font-size:.8em;
}
#delConfDialog,#msgDialog {
font-size:1em;
}
/ * =========================== ==================================================
页脚
========================================= ================================= * /
footer {
background:url(。 ./img/footer.png)repeat-x;
-webkit-box-shadow:0px 0px 10px 0px rgba(0,0,0,1);
-moz-box-shadow:0px 0px 10px 0px rgba(0,0,0,1);
box-shadow:0px 0px 10px 0px rgba(0,0,0,1);
位置:固定;
bottom:0;
z-index:1000;
height:75px;
宽度:100%;
}
/ * ----------------------------------- ------------------------------------------- * /
#页脚顶部{
height:50px;
}
/ * --------------------------------------- --------------------------------------- * /
#footer-bottom {
height:24px;
颜色:#999;
text-decoration:none;
text-shadow:1px 1px 0px#000;
font-family:'Yellowtail';
line-height:24px;
颜色:#aadb02;
}
#copyright {
float:left;
line-height:30px;
font-family:'Play',sans-serif;
text-shadow:1px 1px 0px rgba(255,255,255,.75);
filter:dropshadow(color =#000000,offx = 0,offy = 1);
颜色:#212121;
}
#category-select form {
float:right;
}
/ * ----------------------------------- ------------------------------------------- * /
输入:焦点,选择:焦点{
大纲:无;
}
.InputGroup {
display:inline-block;
padding:3px 4px;
border:1px solid #FFF;
border-radius:7px;
-moz-border-radius:7px;
}
.ErrorField {
border-color:#D00;
颜色:#D00;
背景:#FFFFFE;
}
span.ValidationErrors {
display:inline-block;
font-size:12px;
颜色:#D00;
padding-left:10px;
font-style:italic;
}
/ * ------------------------------- -------------------
显示模式
--------------------- ----------------------------- * /
.reveal-modal-bg {
位置:固定;
身高:100%;
宽度:100%;
背景:#000;
background:rgba(0,0,0,.8);
z-index:100;
display:none;
top:0;
剩下:0;
}
.reveal-modal {
visibility:hidden;
top:100px;
剩下:50%;
margin-left:-300px;
width:520px;
background:#eee url(../ resource / img / modal-gloss.png)no-repeat -200px -80px;
position:absolute;
z-index:101;
padding:30px 40px 34px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
-moz-box-shadow:0 0 10px rgba(0,0,0,.4);
-webkit-box-shadow:0 0 10px rgba(0,0,0,.4);
-box-shadow:0 0 10px rgba(0,0,0,.4);
}
.reveal-modal.small {width:200px; margin-left:-140px;}
.reveal-modal.medium {width:400px; margin-left:-240px;}
.reveal-modal.large {width:600px; margin-left:-340px;}
.reveal-modal.xlarge {width:800px; margin-left:-440px;}
.reveal-modal .close-reveal-modal {
font-size:22px;
line-height:.5;
position:absolute;
top:8px;
right:11px;
颜色:#aaa;
text-shadow:0 -1px 1px rbga(0,0,0,.6);
font-weight:bold;
cursor:pointer;
}
/ * == | ==非语义辅助类========================= ===============
请在本节之前定义您的样式。
============================================== ============================ * /
/ *图片替换* /
。 ir {display:block; border:0;文字缩进:-999em;溢出:隐藏; background-color:transparent;背景重复:不重复; text-align:left;方向:ltr; }
.ir br {display:none; }
$ b $ * /从屏幕阅读器和浏览器隐藏:h5bp.com/u * /
.hidden {display:none!important;知名度:隐藏}
/ *仅在视觉上隐藏,但可用于屏幕阅读器:h5bp.com/v * /
.visuallyhidden {border:0; clip:rect(0 0 0 0); height:1px; margin:-1px;溢出:隐藏;填充:0;位置:绝对;宽度:1px; }
/ *扩展.visuallyhidden类以允许元素在通过键盘导航时可以聚焦:h5bp.com/p * /
.visuallyhidden.focusable:active,.visuallyhidden .focusable:focus {clip:auto;身高:自动;保证金:0;溢出:可见;位置:静态;宽度:自动; }
$ b $ *从视觉和屏幕阅读器隐藏,但保持布局* /
.invisible {visibility:hidden; }
$ b $ *包含浮动内容:h5bp.com/q * /
.clearfix:before,.clearfix:after {content:;显示:表格; }
.clearfix:after {clear:both; }
.clearfix {zoom:1; }
/ * == | ==媒体查询======================== ==============================
PLACEHOLDER响应式设计的媒体查询。
这些覆盖主要('移动第一')样式
根据内容需要修改。
============================================== ============================ */
@media only screen and (min-width: 480px) {
/* Style adjustments for viewports 480px and over go here */
}
@media only screen and (min-width: 768px) { $b $b /* Style adjustments for viewports 768px and over go here */
}
/* ==|== print styles = ================================================== ====
Print styles.
Inlined to avoid required HTTP connection: h5bp.com/r
========================================================================== */
@media print {
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: 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: \"\"; } /* Don’t show links for images, or javascript/internal links */
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; }
}
That’s a Firefox bug, when you are using position:fixed
with background-color:rgba()
, it cause that problem. You can fix it changing the position
to other value, changing the background-color
to a solid color or adding -moz-border-radius:0 1px
.
There is a strange border on my fixed header and footer elements in firefox..
Does anyone know how to get rid of this or is it a bug?
HTML This is the html for the home page..
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--><head>
<meta charset="utf-8">
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
More info: h5bp.com/b/378 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>my Sitelocker!</title>
<meta name="description" content="">
<meta name="author" content="">
<base href="http://sitelocker.local/" />
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
<!-- CSS: implied media=all -->
<!-- CSS concatenated and minified via ant build script-->
<link rel="stylesheet" type="text/css" href="resource/css/grid.css"/>
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="resource/css/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="resource/css/ie.css" /><![endif]-->
<link rel="stylesheet" type="text/css" href="resource/css/style.css">
<link rel="stylesheet" type="text/css" href="resource/css/uniform.default.css">
<link href='http://fonts.googleapis.com/css?family=Yellowtail' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Bangers' rel='stylesheet' type='text/css'>
<link type="text/css" rel="stylesheet" href="resource/css/smoothness/jquery-ui-1.8.2.custom.css" />
<!-- end CSS-->
<!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
<!-- All JavaScript at the bottom, except for Modernizr / Respond.
Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
<script src="resource/js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>
<header id="masthead" class="clearfix">
<div id="masthead-inner" class="container_12 clearfix">
<div id="logo" class="grid_6">
<img src="resource/img/logo.jpg"/>
</div><!--/#logo-->
<div id="tools" class="grid_6">
<a href="#" id="add-site-modal">Add Site</a>
<ul id="top_menu">
<li>Welcome, <strong>lemonfreshdesign</strong>.</li>
<li><a href="http://sitelocker.local/account/account_settings">Account</a></li>
<li><a href="http://sitelocker.local/account/sign_out">Sign out</a></li>
</ul><!--/#top_menu-->
</div><!--/#tools-->
</div><!--/#masthead-inner-->
</header><!--/#masthead-->
<div id="main" role="main" class="container_12 clearfix">
<div id="main_inner">
<div id="ajaxLoadAni">
<img src="resource/img/ajax-loader.gif" alt="Ajax Loading Animation" />
<span>Loading...</span>
</div><!--/#ajaxLoadAni-->
<div id="siteholder" class="column grid_12 clearfix">
</div><!--/#siteholder-->
<div id="delConfDialog" title="Confirm">
<p>Are you sure?</p>
</div><!--/#siteholder-->
<div id="msgDialog">
<p></p>
</div><!--/#siteholder-->
<div id="myModal" class="reveal-modal">
<form action="http://sitelocker.local/usersites/insert_site" method="post" accept-charset="utf-8" class="addsite_form"> <input id="account_id" type="hidden" value="1"/>
<label for="site_title"><strong>Site Name:</strong></label>
<input id="site_title" type="text" maxLength="25" tabindex="1" name="site_title" />
<label for="site_url"><strong>Site Address:</strong></label>
<input id="site_url" type="text" tabindex="2" name="site_url" />
<label for="site_description"><strong>Site Description:</strong></label>
<input id="site_description" type="text" tabindex="3" name="site_description" />
<label for="site_category"><strong>Site Category:</strong></label>
<input id="site_category" type="text" tabindex="4" name="site_category" />
<input id="addsite_form_submit" type="submit" value="Add Site" name="submit" class="addsite_form_submit" tabindex="5" />
</form>
</div><!--/#myModal-->
</div><!--/#main_inner -->
</div><!--/#main -->
<footer id="footer" class="clearfix">
<div id="footer-container" class="container_12 clearfix">
<div id="copyright" class="grid_4">
© my SiteLocker 2011 | All Rights Reserved
</div><!--/#copyright -->
<div id="benchmarking" class="grid_4">
Page rendered in 0.0533 seconds
</div><!--/#benchmarking -->
<div id="category-select" class="grid_4">
<form>
<select style="opacity: 0;">
<option value="option1">Category</option>
<option value="option2">Option 2</option>
<option value="option3">Option 3</option>
</select>
</form>
</div><!--/#category-select -->
</div><!--/#footer-container -->
</footer><!--/#footer -->
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="resource/js/libs/jquery-1.6.2.min.js"><\/script>')</script>
<!-- scripts concatenated and minified via ant build script-->
<script defer src="resource/js/libs/jquery-ui-1.7.2.custom.min.js"></script>
<script defer src="resource/js/plugins.js"></script>
<script type="text/template" id="readTemplate">
<div class="scroll-content-item dragbox clearfix" id="dragbox${site_id}">
<h2 class="h2handle"><a href="${site_url}">${site_title}</a><span class="close"><a href="http://sitelocker.local/usersites/delete_site/${site_id}" id="${site_id}" class="deleteBtn"><img src="resource/img/closepanel.png"></a></span></h2>
<div class="dragbox-content">
<p><a class="sitelink" href="${site_url} ?>" title="${site_title}"><img src="http://immediatenet.com/t/l?Size=1024x768&URL=${site_url}" alt="${site_title}" title="${site_title}"/></a></p>
</div>
<div class="dragbox-footer">
<p>in: ${site_category}</p>
</div>
</div>
</script>
<script defer src="resource/js/script.js"></script>
<script>
//display ajax loader animation
$( '#ajaxLoadAni' ).fadeIn( 'slow' );
$('a#viewqr').click(function(e) {
e.preventDefault();
$('div#qr').reveal({
animation: 'fadeAndPop', //fade, fadeAndPop, none
animationspeed: 300, //how fast animtions are
closeonbackgroundclick: true, //if you click background will modal close?
});
});
</script>
<!-- end scripts-->
<!-- Change UA-XXXXX-X to be your site's ID -->
<script>
window._gaq = [['_setAccount','UAXXXXXXXX1'],['_trackPageview'],['_trackPageLoadTime']];
Modernizr.load({
load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
});
</script>
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if lt IE 7 ]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
</body>
</html>
CSS This is the main layout css file for the main page
/*
* HTML5 ✰ Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*
* Detailed information about this CSS: h5bp.com/css
*
* ==|== normalize ==========================================================
*/
/* =============================================================================
HTML5 display definitions
========================================================================== */
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; }
/* =============================================================================
Base
========================================================================== */
/*
* 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
* 2. Force vertical scrollbar in non-IE
* 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: 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; }
/*
* Remove text-shadow in selection highlight: h5bp.com/i
* These selection declarations have to be separate
* Also: hot pink! (or customize the background color to match your design)
*/
::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }
/* =============================================================================
Links
========================================================================== */
a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }
/* =============================================================================
Typography
========================================================================== */
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; }
/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }
/* Improve readability of pre-formatted text in all browsers */
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%; }
/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
/* =============================================================================
Lists
========================================================================== */
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; }
/* =============================================================================
Embedded content
========================================================================== */
/*
* 1. Improve image quality when scaled in IE7: h5bp.com/d
* 2. Remove the gap between images and borders on image containers: h5bp.com/e
*/
img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
/*
* Correct overflow not hidden in IE9
*/
svg:not(:root) { overflow: hidden; }
/* =============================================================================
Figures
========================================================================== */
figure { margin: 0; }
/* =============================================================================
Forms
========================================================================== */
form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }
/*
* 1. Correct color not inheriting in IE6/7/8/9
* 2. Correct alignment displayed oddly in IE6/7
*/
legend { border: 0; *margin-left: -7px; padding: 0; }
/*
* 1. Correct font-size not inheriting in all browsers
* 2. Remove margins in FF3/4 S5 Chrome
* 3. Define consistent vertical alignment display in all browsers
*/
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
/*
* 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
* 2. Correct inner spacing displayed oddly in IE6/7
*/
button, input { line-height: normal; *overflow: visible; }
/*
* Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
*/
table button, table input { *overflow: auto; }
/*
* 1. Display hand cursor for clickable form elements
* 2. Allow styling of clickable form elements in iOS
*/
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
/*
* Consistent box sizing and appearance
*/
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; }
/*
* Remove inner padding and border in FF3/4: h5bp.com/l
*/
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
/*
* 1. Remove default vertical scrollbar in IE6/7/8/9
* 2. Allow only vertical resizing
*/
textarea { overflow: auto; vertical-align: top; resize: vertical; }
/* Colors for form validity */
input:valid, textarea:valid { }
input:invalid, textarea:invalid { background-color: #f0dddd; }
/* =============================================================================
Tables
========================================================================== */
table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }
/* ==|== primary styles =====================================================
Author:
========================================================================== */
body {
background:url(../img/background.png) repeat;
font-size:100%;
}
/* =============================================================================
header
========================================================================== */
#masthead {
background: url(../img/header.gif) repeat-x;
-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 1);
-moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 1);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 1);
height:54px;
position:fixed;
width:100%;
top:0;
z-index:1000;
text-shadow: 1px 1px 2px #000000;
filter: dropshadow(color=#000000, offx=1, offy=1);
}
/*------------------------------------------------------------------------------*/
#logo {
height:54px;
line-height:50px;
}
#logo img {
padding:0px 15px 0px 0;
background: url(../img/header-sep.png) no-repeat right;
}
/*------------------------------------------------------------------------------*/
#tools {
text-align:right;
}
#tools ul {
float:right;
}
#tools ul li {
display:inline;
}
/* =============================================================================
main
========================================================================== */
#main .dragbox{
margin:20px 15px;
padding:10px;
width:207px;
background-color: rgba(0, 0, 0, .2);
position:relative;
border:1px solid #4e4e4e;
-webkit-box-shadow: 0px 0px 10px 0px #000000;
-moz-box-shadow: 0px 0px 10px 0px #000000;
box-shadow: 0px 0px 10px 0px #000000;
float:left;
}
/*------------------------------------------------------------------------------*/
#main .dragbox h2 {
border-bottom: 1px solid #CCCCCC;
font-size: .8em;
padding: 0;
margin: 0;
background: #7b7b7b; /* Old browsers */
background: -moz-linear-gradient(top, #515151 0%, #303030 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#515151), color-stop(100%,#303030)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #515151 0%,#303030 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #515151 0%,#303030 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #515151 0%,#303030 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#515151', endColorstr='#303030',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #515151 0%,#303030 100%); /* W3C */
padding: 0px 12px;
cursor: move;
font-family:'cabin';
border-top: thin solid #777777;
border-left: thin solid rgba(255, 255, 255, .25);
border-right: thin solid rgba(255, 255, 255, .25);
border-bottom:solid thin #1a1a1a;
text-shadow: 1px 1px 0px #606060;
color:#000000;
font-weight:bold;
text-transform:uppercase;
line-height:2.4em;
}
#main .dragbox h2 a {
text-decoration:none;
color:#000000;
}
#main .dragbox h2 a:hover {
text-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
color:#aadb02;
}
#main .dragbox h2 span.close {
float:right;
}
/*------------------------------------------------------------------------------*/
.dragbox-content{
background:#fff;
min-height:100px;
border-left: 1px solid #a3a3a3;
border-right: 1px solid #a3a3a3;
}
.dragbox-content p {
margin:0;
}
/*------------------------------------------------------------------------------*/
#main .dragbox-footer {
border-bottom: 1px solid #CCCCCC;
font-size: 0.8em;
padding: 0;
margin: 0;
background: #7b7b7b; /* Old browsers */
background: -moz-linear-gradient(top, #7b7b7b 0%, #4d4d4d 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7b7b7b), color-stop(100%,#4d4d4d)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #7b7b7b 0%,#4d4d4d 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #7b7b7b 0%,#4d4d4d 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #7b7b7b 0%,#4d4d4d 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7b7b7b', endColorstr='#4d4d4d',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #7b7b7b 0%,#4d4d4d 100%); /* W3C */
padding: 6px 12px;
cursor: move;
font-family:'cabin';
border-bottom: thin solid rgba(255, 255, 255, .25);
border-left: thin solid rgba(255, 255, 255, .25);
border-right: thin solid rgba(255, 255, 255, .25);
border-top:none;
text-shadow: 1px 1px 0px rgba(255, 255, 255, .25);
color:#0c0c0c;
font-weight:normal;
}
#main .dragbox-footer p {
margin:0;
}
/*------------------------------------------------------------------------------*/
#ajaxLoadAni {
background: #3A3A3A;
color: #fff;
display: none;
font-weight: bold;
position: fixed;
top: 0;
left: 40%;
padding: 8px;
width: 106px;
z-index: 9999;
}
#ajaxLoadAni span {
float: right;
margin: 2px 0 0 0;
}
/*------------------------------------------------------------------------------*/
.ui-widget-content {
font-size: .8em;
}
#delConfDialog, #msgDialog {
font-size: 1em;
}
/* =============================================================================
footer
========================================================================== */
footer {
background:url(../img/footer.png) repeat-x;
-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 1);
-moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 1);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 1);
position:fixed;
bottom:0;
z-index:1000;
height:75px;
width:100%;
}
/*------------------------------------------------------------------------------*/
#footer-top {
height:50px;
}
/*------------------------------------------------------------------------------*/
#footer-bottom {
height:24px;
color:#999;
text-decoration: none;
text-shadow: 1px 1px 0px #000;
font-family:'Yellowtail';
line-height:24px;
color:#aadb02;
}
#copyright {
float:left;
line-height:30px;
font-family: 'Play', sans-serif;
text-shadow: 1px 1px 0px rgba(255, 255, 255, .75);
filter: dropshadow(color=#000000, offx=0, offy=1);
color:#212121;
}
#category-select form {
float:right;
}
/*------------------------------------------------------------------------------*/
input:focus, select:focus {
outline: none;
}
.InputGroup {
display: inline-block;
padding: 3px 4px;
border: 1px solid #FFF;
border-radius: 7px;
-moz-border-radius: 7px;
}
.ErrorField {
border-color: #D00;
color: #D00;
background: #FFFFFE;
}
span.ValidationErrors {
display: inline-block;
font-size: 12px;
color: #D00;
padding-left: 10px;
font-style: italic;
}
/* --------------------------------------------------
Reveal Modals
-------------------------------------------------- */
.reveal-modal-bg {
position: fixed;
height: 100%;
width: 100%;
background: #000;
background: rgba(0,0,0,.8);
z-index: 100;
display: none;
top: 0;
left: 0;
}
.reveal-modal {
visibility: hidden;
top: 100px;
left: 50%;
margin-left: -300px;
width: 520px;
background: #eee url(../resource/img/modal-gloss.png) no-repeat -200px -80px;
position: absolute;
z-index: 101;
padding: 30px 40px 34px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0 0 10px rgba(0,0,0,.4);
-webkit-box-shadow: 0 0 10px rgba(0,0,0,.4);
-box-shadow: 0 0 10px rgba(0,0,0,.4);
}
.reveal-modal.small { width: 200px; margin-left: -140px;}
.reveal-modal.medium { width: 400px; margin-left: -240px;}
.reveal-modal.large { width: 600px; margin-left: -340px;}
.reveal-modal.xlarge { width: 800px; margin-left: -440px;}
.reveal-modal .close-reveal-modal {
font-size: 22px;
line-height: .5;
position: absolute;
top: 8px;
right: 11px;
color: #aaa;
text-shadow: 0 -1px 1px rbga(0,0,0,.6);
font-weight: bold;
cursor: pointer;
}
/* ==|== non-semantic helper classes ========================================
Please define your styles before this section.
========================================================================== */
/* For image replacement */
.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; }
/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }
/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }
/* Contain floats: h5bp.com/q */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
/* ==|== media queries ======================================================
PLACEHOLDER Media Queries for Responsive Design.
These override the primary ('mobile first') styles
Modify as content requires.
========================================================================== */
@media only screen and (min-width: 480px) {
/* Style adjustments for viewports 480px and over go here */
}
@media only screen and (min-width: 768px) {
/* Style adjustments for viewports 768px and over go here */
}
/* ==|== print styles =======================================================
Print styles.
Inlined to avoid required HTTP connection: h5bp.com/r
========================================================================== */
@media print {
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: 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: ""; } /* Don't show links for images, or javascript/internal links */
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; }
}
That's a Firefox bug, when you are using position:fixed
with background-color:rgba()
, it cause that problem. You can fix it changing the position
to other value, changing the background-color
to a solid color or adding -moz-border-radius:0 1px
.
这篇关于奇怪的边界在固定的邮件元素在Firefox 7.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!