英文网站css 已经设置设置了字体和字号,但是表现形式和设计稿不一样?

<div class="fl contain_text_l">
                <p>CHINASHOP, supported by China Chain Store &amp; Franchise Association a solely Chinese national retail organization, has been bringing cutting-edge technologies and brand new solutions to the retail industry for 20 consecutive years ever since it was established in 1999. A wide range of technologies and solutions that we have contributed to the commercial design and POP display, intelligent science and technology for retailing business, cold-chain logistics and equipment, as well as the featured merchandise at home and overseas. Serving as a display platform for the Chinese new retail, we have not merely enchanted a large aggregation of the Chinese mainstream retail enterprises but helped construct the bridge between the global retail industry and the Chinese new retail.</p>
</div>

css 是

    .contain_text_l{width:640px;}
   .contain_text p{color: #3e3a39;font-size: 16px;font-family:                 "HiraginoSansGBW3";margin:70px 0 0 0;line-height: 30px;word-spacing:5px;text-align: justify;}

    
    

图片描述
图片描述
图片描述

阅读 1.9k
1 个回答

很可能是在ps中用的字体,并没有在电脑的操作系统中安装过,所以网页无法识别HiraginoSansGBW3 这个字体,就用了默认字体。

要验证这一点也简单,换个网页常用的字体上去,看看是否一致,起码证明了并非代码写错了。

如果一定要实现ps中的字体效果,需要想办法实现,当一个用户打开网站时,自动给用户的电脑安装字体,让网页可以识别。或者,让ued妥协,用常用的字体。再或者,这段效果只是一小部分的话,直接截图吧。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题