【发布时间】:2014-12-03 03:35:45
【问题描述】:
我正在尝试响应式设计。
font-size 似乎可以推送任何链接或重新加载页面,但随着方向变化而变小。
也不能用 ctrl+ 缩放来修复。
我加载了这样的
@font-face {
font-family: 'Easy';
src: url('fonts/Easy.eot');
src: url('fonts/Easy.eot?#iefix') format('embedded-opentype'),
url('/fonts/Easy.woff') format('woff'),
url('/fonts/Easy.ttf') format('truetype'),
url('/fonts/Easy.svg#arbat') format('svg');
font-weight: normal;
font-style: normal;}
@media only screen and (min-width: 320px) and (max-width: 479px) and (orientation:portrait) {
.container {
position: relative;
width: 100%;
margin: 0 auto;
height: 480px;
padding: 0;
overflow: hidden; }
.container .columns {
float: left; display: inline; margin-left: 0; margin-right: 12%; }
.row
{ margin-bottom: -10px; }
.container .eight.columns {
width: 300px;
margin-bottom: -12%;
margin-left: -3%;
padding-top: 12%;
}
#stars1, #texttwo, #texttre, #textfour, #textfive, #textsix, #stars2, #texttwotwo, #texttwotre, #texttwofour,#texttwofive, #texttwosix, #stars3, #texttretwo, #texttretre, #texttrefour, #texttrefive, #texttresix, #texttreseven, #texttreeight , #stars4, #textfourtwo, #textfourtre, #textfourfour, #textfourfive, #textfoursix, #textfourseven, #textfoureight, #stars5, #textfivetwo, #textfivetre, #textfivefour, #textfivefive, #textfivesix {
font-family: "Easy";
white-space: pre;
max-width: 320px;
margin-bottom: -10px;
font-size: 2em;
color: rgba(225,207,189,0.5);
position: relative;
text-align:center;
z-index: 5;
opacity:0;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
}
}
有什么解决办法吗?
【问题讨论】:
-
您是否尝试过在 Firefox 的响应式设计视图 (crtl-shift-M) 中复制它?
-
您只添加了有关您正在使用的字体系列的 css 信息——与字体大小或屏幕尺寸无关。请参阅how to create a minimal, complete, verifiable example 上的说明。
-
我尝试了 Firefox 的响应式设计视图,它显示了这个问题。我添加了字体大小和屏幕尺寸的代码部分。希望得到帮助)
标签: css responsive-design media-queries