- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的 HTML/CSS/javascript 很弱,但想修改我的网站以响应所有设备。为此,我下载了一个响应式网页设计模板(output here;源代码可下载here)并尝试将我自己网站的内容融入其中。一切都很好,只是页面上的所有数字都以上标形式出现。即使在原始模板上也是如此,因此问题显然是由模板使用的 CSS 样式表引起的。
没有建议here数字字体的标准化似乎已经实现;我也无法在 CSS 表中找到任何会特别影响数字的上标或文本顶部对齐的实现。
CSS 样式表代码如下,示例显示了数字的变化。感谢您提供有关确定为什么数字是上标的任何帮助。
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
outline: 0;
vertical-align: baseline;
background: transparent;
}
html, body {
font-size: 100%;
}
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
display: block;
}
audio, canvas, video {
display: inline-block;
}
audio:not([controls]) {
display: none;
}
[hidden] {
display: none;
}
html {
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
html, button, input, select, textarea {
font-family: sans-serif;
}
a:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
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;
}
mark {
background: #ff0;
color: #000;
}
pre, code, kbd, samp {
font-family: monospace, serif;
_font-family: 'courier new', monospace;
font-size: 1em;
}
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
small {
font-size: 75%;
}
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
nav ul, nav ol {
list-style: none;
list-style-image: none;
}
img {
border: 0;
height: auto;
max-width: 100%;
-ms-interpolation-mode: bicubic;
}
svg:not(:root) {
overflow: hidden;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
white-space: normal;
}
button, input, select, textarea {
font-size: 100%;
margin: 0;
vertical-align: baseline;
}
button, input {
line-height: normal;
}
button, input[type="button"], input[type="reset"], input[type="submit"] {
cursor: pointer;
-webkit-appearance: button;
}
button[disabled], input[disabled] {
cursor: default;
}
input[type="checkbox"], input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
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, input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
}
button::-moz-focus-inner, input::-moz-focus-inner {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
vertical-align: top;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* Neat 1.7.0
* http://neat.bourbon.io
* Copyright 2012-2014 thoughtbot, inc.
* MIT License */
html {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*, *:before, *:after {
-webkit-box-sizing: inherit;
-moz-box-sizing: inherit;
box-sizing: inherit;
}
body {
-webkit-font-feature-settings: "kern", "liga", "frac", "pnum";
-moz-font-feature-settings: "kern", "liga", "frac", "pnum";
-ms-font-feature-settings: "kern", "liga", "frac", "pnum";
font-feature-settings: "kern", "liga", "frac", "pnum";
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
background-color: #22272a;
color: #ced9e0;
font-family: "font-family: " Helvetica Neue ",Helvetica,Arial,sans-serif";
font-size: 1em;
line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "font-family: " Helvetica Neue ",Helvetica,Arial,sans-serif";
line-height: 1.25;
margin: 0;
color: #fff;
}
h1 {
font-size: 2.25em;
}
h2 {
font-size: 2em;
}
h3 {
font-size: 1.75em;
}
h4 {
font-size: 1.5em;
}
h5 {
font-size: 1.25em;
}
h6 {
font-size: 1em;
}
p {
margin: 0 0 0.75em;
font-family: "font-family: " Helvetica Neue ",Helvetica,Arial,sans-serif";
}
a {
-webkit-transition: color 0.1s linear;
-moz-transition: color 0.1s linear;
transition: color 0.1s linear;
color: #ced9e0;
text-decoration: none;
}
a:hover {
color: #9fb5c2;
border-color: #9fb5c2;
}
a:active, a:focus {
color: #9fb5c2;
border-color: #9fb5c2;
outline: none;
}
header {
color: #fff;
}
hr {
border-bottom: 1px solid #ddd;
border-left: none;
border-right: none;
border-top: none;
margin: 1.5em 0;
}
img,
picture {
margin: 0;
max-width: 100%;
}
blockquote {
border-left: 2px solid #ddd;
color: #fdfdfe;
margin: 1.5em 0;
padding-left: 0.75em;
}
cite {
color: white;
font-style: italic;
}
cite:before {
content: "\2014 \00A0";
}
body {
padding-left: 1em;
padding-right: 1em;
}
a {
border-bottom: 1px solid #ced9e0;
}
a:hover {
color: #006600;
}
header {
max-width: 68em;
margin-left: auto;
margin-right: auto;
margin-top: 4em;
border-top: 2px solid #006600;
opacity: 0;
-webkit-transform: translateY(50px);
-moz-transform: translateY(50px);
-ms-transform: translateY(50px);
-o-transform: translateY(50px);
transform: translateY(50px);
-webkit-transition: all 1200ms ease;
-moz-transition: all 1200ms ease;
transition: all 1200ms ease;
-webkit-transition-delay: 50ms;
-moz-transition-delay: 50ms;
transition-delay: 50ms;
}
header:after {
content: "";
display: table;
clear: both;
}
@media screen and (max-width: 540px) {
header {
margin-top: 2em;
}
}
header #logo-container {
float: left;
display: block;
margin-right: 2.35765%;
width: 48.82117%;
}
header #logo-container:last-child {
margin-right: 0;
}
@media screen and (max-width: 540px) {
header #logo-container {
float: left;
display: block;
margin-right: 7.42297%;
width: 100%;
}
header #logo-container:last-child {
margin-right: 0;
}
}
header #logo-container #logo {
padding-top: 0.5em;
font-weight: bold;
font-size: 48px;
line-height: 60px;
letter-spacing: -0.05em;
float: none;
}
header #logo-container #subtitle {
color: #006600;
font-weight: bold;
font-size: 18px;
}
header a {
color: #006600;
text-decoration: none;
border: none;
}
header a:hover {
color: #d11c1c;
border-color: #d11c1c;
}
header a:active, header a:focus {
color: #d11c1c;
border-color: #d11c1c;
}
header nav {
text-align: right;
float: left;
display: block;
margin-right: 2.35765%;
width: 74.41059%;
}
header nav:last-child {
margin-right: 0;
}
@media screen and (max-width: 540px) {
header nav {
text-align: left;
margin-top: 1em;
float: left;
display: block;
margin-right: 7.42297%;
width: 100%;
}
header nav:last-child {
margin-right: 0;
}
}
header nav ul {
padding-top: 0.5em;
line-height: 60px;
}
header nav ul li {
display: inline-block;
margin-left: 1em;
}
@media screen and (max-width: 540px) {
header nav ul li {
margin-left: 0;
margin-right: 1em;
}
}
header nav ul li a {
font-weight: bold;
}
header nav ul li a.bordered {
border-radius: 0.2em;
padding: 0.4em;
padding-left: 0.8em;
padding-right: 0.8em;
border: 2px solid #006600;
}
#content {
max-width: 68em;
margin-left: auto;
margin-right: auto;
padding-bottom: 1em;
opacity: 0;
-webkit-transform: translateY(50px);
-moz-transform: translateY(50px);
-ms-transform: translateY(50px);
-o-transform: translateY(50px);
transform: translateY(50px);
-webkit-transition: all 1200ms ease;
-moz-transition: all 1200ms ease;
transition: all 1200ms ease;
-webkit-transition-delay: 350ms;
-moz-transition-delay: 350ms;
transition-delay: 350ms;
}
#content:after {
content: "";
display: table;
clear: both;
}
#content section.intro {
max-width: 68em;
margin-left: auto;
margin-right: auto;
margin-bottom: 2em;
}
#content section.intro:after {
content: "";
display: table;
clear: both;
}
@media screen and (max-width: 540px) {
#content section.intro {
margin-bottom: 1em;
}
}
#content section.intro h1 {
font-size: 8em;
border-top: 2px solid #fff;
letter-spacing: -0.05em;
margin-top: 1.2em;
margin-bottom: 1em;
}
@media screen and (max-width: 540px) {
#content section.intro h1 {
font-size: 4em;
line-height: 1.2em;
padding-top: 0.4em;
}
}
#content section.intro h1 span.nl {
display: none;
}
@media screen and (max-width: 540px) {
#content section.intro h1 span.nl {
display: block;
}
}
#content section.intro p {
font-size: 2.0em;
line-height: 1.5em;
letter-spacing: 0.02em;
}
#content section.row {
max-width: 68em;
margin-left: auto;
margin-right: auto;
padding-top: 2em;
padding-bottom: 1em;
}
#content section.row:after {
content: "";
display: table;
clear: both;
}
#content section.row h2 {
text-transform: uppercase;
font-size: 1.0em;
font-weight: bold;
color: #006600;
margin-bottom: 0.05em;
}
#content section.row p {
font-size: 1.2em;
line-height: 1.6em;
}
#content section.row .col, #content section.row .col-full {
float: left;
display: block;
margin-right: 2.35765%;
width: 48.82117%;
border-top: 2px solid #ced9e0;
padding-top: 1em;
padding-bottom: 1em;
}
#content section.row .col:last-child, #content section.row .col-full:last-child {
margin-right: 0;
}
@media screen and (max-width: 540px) {
#content section.row .col, #content section.row .col-full {
float: left;
display: block;
margin-right: 7.42297%;
width: 100%;
}
#content section.row .col:last-child, #content section.row .col-full:last-child {
margin-right: 0;
}
}
#content section.row .col-full {
float: left;
display: block;
margin-right: 2.35765%;
width: 100%;
}
#content section.row .col-full:last-child {
margin-right: 0;
}
@media screen and (max-width: 540px) {
#content section.row .col-full {
float: left;
display: block;
margin-right: 7.42297%;
width: 100%;
}
#content section.row .col-full:last-child {
margin-right: 0;
}
}
#content .photo-grid {
display: -webkit-box;
display: -moz-box;
display: box;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
-moz-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-pack: justify;
-moz-box-pack: justify;
box-pack: justify;
-webkit-justify-content: space-between;
-moz-justify-content: space-between;
-ms-justify-content: space-between;
-o-justify-content: space-between;
justify-content: space-between;
-ms-flex-pack: justify;
}
#content .photo-grid a {
margin-bottom: 20px;
border: none;
text-decoration: none;
}
#content .photo-grid a.col-1 {
width: 100%;
}
#content .photo-grid a.col-2 {
width: 49%;
width: calc(50% - 12px);
}
#content .photo-grid a.col-3 {
width: 32%;
width: calc(33.33333% - 16px);
}
@media screen and (max-width: 540px) {
#content .photo-grid a {
margin-bottom: 10px;
}
#content .photo-grid a.col-2 {
width: 49%;
width: calc(50% - 7px);
}
}
.loaded header {
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
opacity: 1;
}
.loaded #content {
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
opacity: 1;
}
/*# sourceMappingURL=main.css.map */
Hello world I am 32 years old in 2015.
最佳答案
这是因为以下行应用于您的 css 中的 body
:
-webkit-font-feature-settings: "kern", "liga", "frac", "pnum";
-moz-font-feature-settings: "kern", "liga", "frac", "pnum";
-ms-font-feature-settings: "kern", "liga", "frac", "pnum";
font-feature-settings: "kern", "liga", "frac", "pnum";
特别是启用自动分数的 "frac"
设置:
/* enable automatic fractions */
.fractions { font-feature-settings: "frac"; }
字体功能设置(https://developer.mozilla.org/en/docs/Web/CSS/font-feature-settings)
以下代码段演示了此设置的预期用途:
.fractions {
-webkit-font-feature-settings: "frac";
-moz-font-feature-settings: "frac";
-ms-font-feature-settings: "frac";
font-feature-settings: "frac";
}
<div class="fractions">Automatic fractions 1/2</div>
<div class="noFractions">No automatic fractions 1/2</div>
要修复,请对您的 CSS 进行以下更改:
body
选择器中的每个 font-feature-settings
声明中删除 "frac"
设置html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
outline: 0;
vertical-align: baseline;
background: transparent;
}
html, body {
font-size: 100%;
}
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
display: block;
}
audio, canvas, video {
display: inline-block;
}
audio:not([controls]) {
display: none;
}
[hidden] {
display: none;
}
html {
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
html, button, input, select, textarea {
font-family: sans-serif;
}
a:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
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;
}
mark {
background: #ff0;
color: #000;
}
pre, code, kbd, samp {
font-family: monospace, serif;
_font-family: 'courier new', monospace;
font-size: 1em;
}
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
small {
font-size: 75%;
}
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
nav ul, nav ol {
list-style: none;
list-style-image: none;
}
img {
border: 0;
height: auto;
max-width: 100%;
-ms-interpolation-mode: bicubic;
}
svg:not(:root) {
overflow: hidden;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
white-space: normal;
}
button, input, select, textarea {
font-size: 100%;
margin: 0;
vertical-align: baseline;
}
button, input {
line-height: normal;
}
button, input[type="button"], input[type="reset"], input[type="submit"] {
cursor: pointer;
-webkit-appearance: button;
}
button[disabled], input[disabled] {
cursor: default;
}
input[type="checkbox"], input[type="radio"] {
box-sizing: border-box;
padding: 0;
}
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, input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
}
button::-moz-focus-inner, input::-moz-focus-inner {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
vertical-align: top;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* Neat 1.7.0
* http://neat.bourbon.io
* Copyright 2012-2014 thoughtbot, inc.
* MIT License */
html {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*, *:before, *:after {
-webkit-box-sizing: inherit;
-moz-box-sizing: inherit;
box-sizing: inherit;
}
body {
-webkit-font-feature-settings: "kern", "liga", "pnum";
-moz-font-feature-settings: "kern", "liga", "pnum";
-ms-font-feature-settings: "kern", "liga", "pnum";
font-feature-settings: "kern", "liga", "pnum";
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
background-color: #22272a;
color: #ced9e0;
font-family: "font-family: " Helvetica Neue ",Helvetica,Arial,sans-serif";
font-size: 1em;
line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "font-family: " Helvetica Neue ",Helvetica,Arial,sans-serif";
line-height: 1.25;
margin: 0;
color: #fff;
}
h1 {
font-size: 2.25em;
}
h2 {
font-size: 2em;
}
h3 {
font-size: 1.75em;
}
h4 {
font-size: 1.5em;
}
h5 {
font-size: 1.25em;
}
h6 {
font-size: 1em;
}
p {
margin: 0 0 0.75em;
font-family: "font-family: " Helvetica Neue ",Helvetica,Arial,sans-serif";
}
a {
-webkit-transition: color 0.1s linear;
-moz-transition: color 0.1s linear;
transition: color 0.1s linear;
color: #ced9e0;
text-decoration: none;
}
a:hover {
color: #9fb5c2;
border-color: #9fb5c2;
}
a:active, a:focus {
color: #9fb5c2;
border-color: #9fb5c2;
outline: none;
}
header {
color: #fff;
}
hr {
border-bottom: 1px solid #ddd;
border-left: none;
border-right: none;
border-top: none;
margin: 1.5em 0;
}
img,
picture {
margin: 0;
max-width: 100%;
}
blockquote {
border-left: 2px solid #ddd;
color: #fdfdfe;
margin: 1.5em 0;
padding-left: 0.75em;
}
cite {
color: white;
font-style: italic;
}
cite:before {
content: "\2014 \00A0";
}
body {
padding-left: 1em;
padding-right: 1em;
}
a {
border-bottom: 1px solid #ced9e0;
}
a:hover {
color: #006600;
}
header {
max-width: 68em;
margin-left: auto;
margin-right: auto;
margin-top: 4em;
border-top: 2px solid #006600;
opacity: 0;
-webkit-transform: translateY(50px);
-moz-transform: translateY(50px);
-ms-transform: translateY(50px);
-o-transform: translateY(50px);
transform: translateY(50px);
-webkit-transition: all 1200ms ease;
-moz-transition: all 1200ms ease;
transition: all 1200ms ease;
-webkit-transition-delay: 50ms;
-moz-transition-delay: 50ms;
transition-delay: 50ms;
}
header:after {
content: "";
display: table;
clear: both;
}
@media screen and (max-width: 540px) {
header {
margin-top: 2em;
}
}
header #logo-container {
float: left;
display: block;
margin-right: 2.35765%;
width: 48.82117%;
}
header #logo-container:last-child {
margin-right: 0;
}
@media screen and (max-width: 540px) {
header #logo-container {
float: left;
display: block;
margin-right: 7.42297%;
width: 100%;
}
header #logo-container:last-child {
margin-right: 0;
}
}
header #logo-container #logo {
padding-top: 0.5em;
font-weight: bold;
font-size: 48px;
line-height: 60px;
letter-spacing: -0.05em;
float: none;
}
header #logo-container #subtitle {
color: #006600;
font-weight: bold;
font-size: 18px;
}
header a {
color: #006600;
text-decoration: none;
border: none;
}
header a:hover {
color: #d11c1c;
border-color: #d11c1c;
}
header a:active, header a:focus {
color: #d11c1c;
border-color: #d11c1c;
}
header nav {
text-align: right;
float: left;
display: block;
margin-right: 2.35765%;
width: 74.41059%;
}
header nav:last-child {
margin-right: 0;
}
@media screen and (max-width: 540px) {
header nav {
text-align: left;
margin-top: 1em;
float: left;
display: block;
margin-right: 7.42297%;
width: 100%;
}
header nav:last-child {
margin-right: 0;
}
}
header nav ul {
padding-top: 0.5em;
line-height: 60px;
}
header nav ul li {
display: inline-block;
margin-left: 1em;
}
@media screen and (max-width: 540px) {
header nav ul li {
margin-left: 0;
margin-right: 1em;
}
}
header nav ul li a {
font-weight: bold;
}
header nav ul li a.bordered {
border-radius: 0.2em;
padding: 0.4em;
padding-left: 0.8em;
padding-right: 0.8em;
border: 2px solid #006600;
}
#content {
max-width: 68em;
margin-left: auto;
margin-right: auto;
padding-bottom: 1em;
opacity: 0;
-webkit-transform: translateY(50px);
-moz-transform: translateY(50px);
-ms-transform: translateY(50px);
-o-transform: translateY(50px);
transform: translateY(50px);
-webkit-transition: all 1200ms ease;
-moz-transition: all 1200ms ease;
transition: all 1200ms ease;
-webkit-transition-delay: 350ms;
-moz-transition-delay: 350ms;
transition-delay: 350ms;
}
#content:after {
content: "";
display: table;
clear: both;
}
#content section.intro {
max-width: 68em;
margin-left: auto;
margin-right: auto;
margin-bottom: 2em;
}
#content section.intro:after {
content: "";
display: table;
clear: both;
}
@media screen and (max-width: 540px) {
#content section.intro {
margin-bottom: 1em;
}
}
#content section.intro h1 {
font-size: 8em;
border-top: 2px solid #fff;
letter-spacing: -0.05em;
margin-top: 1.2em;
margin-bottom: 1em;
}
@media screen and (max-width: 540px) {
#content section.intro h1 {
font-size: 4em;
line-height: 1.2em;
padding-top: 0.4em;
}
}
#content section.intro h1 span.nl {
display: none;
}
@media screen and (max-width: 540px) {
#content section.intro h1 span.nl {
display: block;
}
}
#content section.intro p {
font-size: 2.0em;
line-height: 1.5em;
letter-spacing: 0.02em;
}
#content section.row {
max-width: 68em;
margin-left: auto;
margin-right: auto;
padding-top: 2em;
padding-bottom: 1em;
}
#content section.row:after {
content: "";
display: table;
clear: both;
}
#content section.row h2 {
text-transform: uppercase;
font-size: 1.0em;
font-weight: bold;
color: #006600;
margin-bottom: 0.05em;
}
#content section.row p {
font-size: 1.2em;
line-height: 1.6em;
}
#content section.row .col, #content section.row .col-full {
float: left;
display: block;
margin-right: 2.35765%;
width: 48.82117%;
border-top: 2px solid #ced9e0;
padding-top: 1em;
padding-bottom: 1em;
}
#content section.row .col:last-child, #content section.row .col-full:last-child {
margin-right: 0;
}
@media screen and (max-width: 540px) {
#content section.row .col, #content section.row .col-full {
float: left;
display: block;
margin-right: 7.42297%;
width: 100%;
}
#content section.row .col:last-child, #content section.row .col-full:last-child {
margin-right: 0;
}
}
#content section.row .col-full {
float: left;
display: block;
margin-right: 2.35765%;
width: 100%;
}
#content section.row .col-full:last-child {
margin-right: 0;
}
@media screen and (max-width: 540px) {
#content section.row .col-full {
float: left;
display: block;
margin-right: 7.42297%;
width: 100%;
}
#content section.row .col-full:last-child {
margin-right: 0;
}
}
#content .photo-grid {
display: -webkit-box;
display: -moz-box;
display: box;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
-moz-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-pack: justify;
-moz-box-pack: justify;
box-pack: justify;
-webkit-justify-content: space-between;
-moz-justify-content: space-between;
-ms-justify-content: space-between;
-o-justify-content: space-between;
justify-content: space-between;
-ms-flex-pack: justify;
}
#content .photo-grid a {
margin-bottom: 20px;
border: none;
text-decoration: none;
}
#content .photo-grid a.col-1 {
width: 100%;
}
#content .photo-grid a.col-2 {
width: 49%;
width: calc(50% - 12px);
}
#content .photo-grid a.col-3 {
width: 32%;
width: calc(33.33333% - 16px);
}
@media screen and (max-width: 540px) {
#content .photo-grid a {
margin-bottom: 10px;
}
#content .photo-grid a.col-2 {
width: 49%;
width: calc(50% - 7px);
}
}
.loaded header {
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
opacity: 1;
}
.loaded #content {
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
opacity: 1;
}
/*# sourceMappingURL=main.css.map */
Hello world I am 32 years old in 2015.
关于css - 网页上的所有数字都以上标形式出现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34350814/
fiddle :http://jsfiddle.net/rtucgv74/ 我正在尝试将第一个字符与 3 位数字匹配。所以下面的代码应该提醒f234。但反而返回 null ? 源代码: var reg
复制代码 代码如下: Dim strOk,strNo strOk = "12312321$12
我想找 {a number} / { a number } / {a string}模式。我可以得到number / number工作,但是当我添加 / string它不是。 我试图找到的例子: 15
我,我正在做一个模式正则表达式来检查字符串是否是: 数字.数字.数字,如下所示: 1.1.1 0.20.2 58.55541.5221 在java中我使用这个: private static Patt
我有一个字符串,我需要检查它是否在字符串的末尾包含一个数字/数字,并且需要将该数字/数字递增到字符串末尾 +1 我会得到下面的字符串 string2 = suppose_name_1 string3
我正在寻找一个正则表达式 (数字/数字),如(1/2) 数字必须是 1-3 位数字。我使用 Java。 我认为我的问题比正则表达式更深。我无法让这个工作 String s ="(1/15)";
谁能帮我理解为什么我在使用以下代码时会出现类型错误: function sumOfTwoNumbersInArray(a: [number, number]) { return a[0] +
我看到有些人过去也遇到过类似的问题,但他们似乎只是不同,所以解决方案也有所不同。所以这里是: 我正在尝试在 Google Apps 脚本中返回工作表的已知尺寸范围,如下所示: var myRange
我试图了解python中的正则表达式模块。我试图让我的程序从用户输入的一行文本中匹配以下模式: 8-13 之间的数字“/” 0-15 之间的数字 例如:8/2、11/13、10/9 等。 我想出的模式
简单地说,我当前正在开发的程序要求我拆分扫描仪输入(例如:2 个火腿和奶酪 5.5)。它应该读取杂货订单并将其分成三个数组。我应该使用 string.split 并能够将此输入分成三部分,而不管中间字
(number) & (-number) 是什么意思?我已经搜索过了,但无法找到含义 我想在 for 循环中使用 i & (-i),例如: for (i = 0; i 110000 .对于i没有高于
需要将图像ID设置为数字 var number = $(this).attr('rel'); number = parseInt(number); $('#carousel .slid
我有一个函数,我想确保它接受一个字符串,后跟一个数字。并且可选地,更多的字符串数字对。就像一个元组,但“无限”次: const fn = (...args: [string, number] | [s
我想复制“可用”输入数字的更改并将其添加或减去到“总计”中 如果此人将“可用”更改为“3”,则“总计”将变为“9”。 如果用户将“可用”更改为“5”,则“总计”将变为“11”。 $('#id1').b
我有一个与 R 中的断线相关的简单问题。 我正在尝试粘贴,但在获取(字符/数字)之间的断线时遇到问题。请注意,这些值包含在向量中(V1=81,V2=55,V3=25)我已经尝试过这段代码: cat(p
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
我在 Typescript 中收到以下错误: Argument of type 'number[]' is not assignable to parameter of type 'number' 我
在本教程中,您将通过示例了解JavaScript 数字。 在JavaScript中,数字是基本数据类型。例如, const a = 3; const b = 3.13; 与其他一些编程语言不同
我在 MDN Reintroduction to JavaScript 上阅读JavaScript 数字只是浮点精度类型,JavaScript 中没有整数。然而 JavaScript 有两个函数,pa
我们在 Excel 中管理库存。我知道这有点过时,但我们正在发展商业公司,我们所有的钱都被困在业务上,没有钱投资 IT。 所以我想知道我可以用Excel自动完成产品编号的方式进行编程吗? 这是一个产品
我是一名优秀的程序员,十分优秀!