简单的问题:为什么这两个字体在Photoshop和网站上看起来不同。
在这张图片中,第一个文本是从HTML代码中获取的,第二个是Photoshop中的图片。使用的是相同的字体和大小 - 30,但第一个看起来比第二个更“粗”。为什么?我想要的是像Photoshop中那样完全一样的字体(第二张图片)。
以下是CSS代码:
在这张图片中,第一个文本是从HTML代码中获取的,第二个是Photoshop中的图片。使用的是相同的字体和大小 - 30,但第一个看起来比第二个更“粗”。为什么?我想要的是像Photoshop中那样完全一样的字体(第二张图片)。
以下是CSS代码:
@font-face {
font-family: "SegoeWP";
src: url("fonts/play/SegoeWP.eot");
src: url("fonts/play/SegoeWP.eot?#iefix")
format("embedded-opentype"),
url("fonts/play/SegoeWP.woff") format("woff"),
url("fonts/play/SegoeWP.ttf") format("truetype"),
url("fonts/play/SegoeWP.svg#PlayRegular") format("svg");
font-weight: lighter;
}
#strona {
width: 1120px;
margin-left: auto;
margin-right: auto;
}
#Section1
{
font-family: "SegoeWP", Tahoma, Arial, sans-serif;
font-size: 30px;
}
header, footer, article, section, hgroup, nav, figure {
display: block;
}
body {
font-family: "SegoeWP", Tahoma, Arial, sans-serif;
background-image:url('background.jpg');
background-repeat: no-repeat;
background-position: top center;
color: #ffffff;
}
And html code.
<section id="Section1"> { mywebsite.NET } </section>
<img src="mojeportfolio.png" />
有什么想法吗?问候!
更多
我发现我文件夹中有3种SegoeWP字体。 "SegoeWP","SegoeWP-Light","SegoeWP-Semibold"。 "SegoeWP"看起来有点过于"粗体",但是这个"SegoeWP-Light"完美无缺,并且在我双击它时与Photoshop中的字体相同。 我如何在我的网站上使用它? 当我更改这部分 -> url("fonts/play/SegoeWP-Light.*")时,在网站上没有任何变化。 这是怎么了?
font-weight: lighter;
没有任何变化:( - whoahurl("fonts/play/SegoeWP-Light.*")
时,在网站上没有任何变化。出了什么问题? - whoah