CSS高手看一下如何整合

html-css015

CSS高手看一下如何整合,第1张

lz 是不是这个意思``

<table class="content" width="100%" cellspacing="0" cellpadding="0" style='TABLE-LAYOUT: fixedWORD-WRAP: break-word' align="center">

<tr>

<td align="left" class="content_word" id="read_tpc">

<font id="zoom" face="宋体">

<span id="post1">

<div style="float:leftline-height:150%PADDING-RIGHT: 5pxPADDING-LEFT: 5pxPADDING-BOTTOM: 5pxPADDING-TOP: 3px"">

{$AD_label['article_content']}

</div>$rsdb[content]

</span>

</font>

</td>

</tr>

</table>

直接换Style属性不就行了么?

我今天也遇到了这个问题,最后发现是因为站点更新了。现在你可以访问这个网站找到需要的文件了。

fonts.googleapis.com

一种办法是用这个域名代替你原来的字体库地址;

另一种是下载下来之后本地引入。

下面是你需要的资源:

/* cyrillic-ext */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 400

  src: local('Arimo'), url(https://fonts.gstatic.com/s/arimo/v9/an78_18DAUCSU6a4qacRuA.woff2) format('woff2')

  unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F

}

/* cyrillic */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 400

  src: local('Arimo'), url(https://fonts.gstatic.com/s/arimo/v9/4NN7UQ_VsRBn7NDD9HKUPw.woff2) format('woff2')

  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116

}

/* greek-ext */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 400

  src: local('Arimo'), url(https://fonts.gstatic.com/s/arimo/v9/ye-fuRt_0mKrPeIp6Mwa8A.woff2) format('woff2')

  unicode-range: U+1F00-1FFF

}

/* greek */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 400

  src: local('Arimo'), url(https://fonts.gstatic.com/s/arimo/v9/VF6T-UwCT6WyIiUKP6AykQ.woff2) format('woff2')

  unicode-range: U+0370-03FF

}

/* hebrew */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 400

  src: local('Arimo'), url(https://fonts.gstatic.com/s/arimo/v9/X3cUdzInOvbZ6zhcyjPc3w.woff2) format('woff2')

  unicode-range: U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F

}

/* vietnamese */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 400

  src: local('Arimo'), url(https://fonts.gstatic.com/s/arimo/v9/eSHy7hCA8QR4qTF-59v60g.woff2) format('woff2')

  unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB

}

/* latin-ext */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 400

  src: local('Arimo'), url(https://fonts.gstatic.com/s/arimo/v9/V41d6938Z8eBLYL302F8Ig.woff2) format('woff2')

  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF

}

/* latin */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 400

  src: local('Arimo'), url(https://fonts.gstatic.com/s/arimo/v9/HNu4Nzh6q8Es60EMNZhs9w.woff2) format('woff2')

  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215

}

/* cyrillic-ext */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 700

  src: local('Arimo Bold'), local('Arimo-Bold'), url(https://fonts.gstatic.com/s/arimo/v9/ar6XjGD_YvbpY9XD5YxKTBTbgVql8nDJpwnrE27mub0.woff2) format('woff2')

  unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F

}

/* cyrillic */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 700

  src: local('Arimo Bold'), local('Arimo-Bold'), url(https://fonts.gstatic.com/s/arimo/v9/XzFO_hPcAZmADxw_2htokBTbgVql8nDJpwnrE27mub0.woff2) format('woff2')

  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116

}

/* greek-ext */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 700

  src: local('Arimo Bold'), local('Arimo-Bold'), url(https://fonts.gstatic.com/s/arimo/v9/Tq4Zh2K0uru54pu6hyua9BTbgVql8nDJpwnrE27mub0.woff2) format('woff2')

  unicode-range: U+1F00-1FFF

}

/* greek */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 700

  src: local('Arimo Bold'), local('Arimo-Bold'), url(https://fonts.gstatic.com/s/arimo/v9/gRIQMcBGUlcKSvTGaO9yHBTbgVql8nDJpwnrE27mub0.woff2) format('woff2')

  unicode-range: U+0370-03FF

}

/* hebrew */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 700

  src: local('Arimo Bold'), local('Arimo-Bold'), url(https://fonts.gstatic.com/s/arimo/v9/Jg7MGeIJdVGhHqsyezM8VRTbgVql8nDJpwnrE27mub0.woff2) format('woff2')

  unicode-range: U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F

}

/* vietnamese */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 700

  src: local('Arimo Bold'), local('Arimo-Bold'), url(https://fonts.gstatic.com/s/arimo/v9/u0Tw4Txbkc9Av4uzN1j1aBTbgVql8nDJpwnrE27mub0.woff2) format('woff2')

  unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB

}

/* latin-ext */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 700

  src: local('Arimo Bold'), local('Arimo-Bold'), url(https://fonts.gstatic.com/s/arimo/v9/XCmwOdi6K62tkWaszbVGURTbgVql8nDJpwnrE27mub0.woff2) format('woff2')

  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF

}

/* latin */

@font-face {

  font-family: 'Arimo'

  font-style: normal

  font-weight: 700

  src: local('Arimo Bold'), local('Arimo-Bold'), url(https://fonts.gstatic.com/s/arimo/v9/27rE5lMk9EHpLbxiIuGd0PesZW2xOQ-xsNqO47m55DA.woff2) format('woff2')

  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215

}

/* cyrillic-ext */

@font-face {

  font-family: 'Arimo'

  font-style: italic

  font-weight: 400

  src: local('Arimo Italic'), local('Arimo-Italic'), url(https://fonts.gstatic.com/s/arimo/v9/-lqiBwxkYHykb59Lvn7rk_Y6323mHUZFJMgTvxaG2iE.woff2) format('woff2')

  unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F

}

/* cyrillic */

@font-face {

  font-family: 'Arimo'

  font-style: italic

  font-weight: 400

  src: local('Arimo Italic'), local('Arimo-Italic'), url(https://fonts.gstatic.com/s/arimo/v9/tvCMF1Qlf0MEvcc7JEzrhfY6323mHUZFJMgTvxaG2iE.woff2) format('woff2')

  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116

}

/* greek-ext */

@font-face {

  font-family: 'Arimo'

  font-style: italic

  font-weight: 400

  src: local('Arimo Italic'), local('Arimo-Italic'), url(https://fonts.gstatic.com/s/arimo/v9/aKQL0kir7sjNM0_YzHc9yvY6323mHUZFJMgTvxaG2iE.woff2) format('woff2')

  unicode-range: U+1F00-1FFF

}

/* greek */

@font-face {

  font-family: 'Arimo'

  font-style: italic

  font-weight: 400

  src: local('Arimo Italic'), local('Arimo-Italic'), url(https://fonts.gstatic.com/s/arimo/v9/c6Ldt38oFMowvdIZIi9CaPY6323mHUZFJMgTvxaG2iE.woff2) format('woff2')

  unicode-range: U+0370-03FF

}

/* hebrew */

@font-face {

  font-family: 'Arimo'

  font-style: italic

  font-weight: 400

  src: local('Arimo Italic'), local('Arimo-Italic'), url(https://fonts.gstatic.com/s/arimo/v9/awI6zBWVPE21rQLtkVDZpfY6323mHUZFJMgTvxaG2iE.woff2) format('woff2')

  unicode-range: U+0590-05FF, U+20AA, U+25CC, U+FB1D-FB4F

}

/* vietnamese */

@font-face {

  font-family: 'Arimo'

  font-style: italic

  font-weight: 400

  src: local('Arimo Italic'), local('Arimo-Italic'), url(https://fonts.gstatic.com/s/arimo/v9/Phj51JGRBuPcxq7i7-qcHPY6323mHUZFJMgTvxaG2iE.woff2) format('woff2')

  unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB

}

/* latin-ext */

@font-face {

  font-family: 'Arimo'

  font-style: italic

  font-weight: 400

  src: local('Arimo Italic'), local('Arimo-Italic'), url(https://fonts.gstatic.com/s/arimo/v9/-CSRdP_Aes2aBSIDGwIm6vY6323mHUZFJMgTvxaG2iE.woff2) format('woff2')

  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF

}

/* latin */

@font-face {

  font-family: 'Arimo'

  font-style: italic

  font-weight: 400

  src: local('Arimo Italic'), local('Arimo-Italic'), url(https://fonts.gstatic.com/s/arimo/v9/GYkAnzJvKnl5kOgLY6RO-w.woff2) format('woff2')

  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215

}

你可以复制上面的代码,然后保存为.css文件。

写法是正确的,就是使用逗号隔开即可。测试可以使用的。

ID(#选择器)是唯一元素,一个页面上这个ID只有1个是可以用到(class可以多个其作用)。

$('#abc').css({

'<a href="https://www.baidu.com/s?wd=font-size&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1Y4nWKWuh79uHuhnARdPHnz0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6KdThsqpZwYTjCEQLGCpyw9Uz4Bmy-bIi4WUvYETgN-TLwGUv3ErjTzn161Pj04PHcsPW64PjRz" target="_blank" class="baidu-highlight">font-size</a>' : '12px',

'-webkit-border-radius' : '5px',

'color' : '#cc0000'

})

$('#abc').css({

fontSize : '12px',

webkitBorderRadius : '5px',

color : '#c00'

})

都是正确的写法。