鍍金池/ 問答/HTML5  PHP  HTML/ 英文網(wǎng)站css 已經(jīng)設(shè)置設(shè)置了字體和字號,但是表現(xiàn)形式和設(shè)計稿不一樣?

英文網(wǎng)站css 已經(jīng)設(shè)置設(shè)置了字體和字號,但是表現(xiàn)形式和設(shè)計稿不一樣?

<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;}

    
    

圖片描述
圖片描述
圖片描述

回答
編輯回答
雨萌萌

很可能是在ps中用的字體,并沒有在電腦的操作系統(tǒng)中安裝過,所以網(wǎng)頁無法識別HiraginoSansGBW3 這個字體,就用了默認(rèn)字體。

要驗證這一點也簡單,換個網(wǎng)頁常用的字體上去,看看是否一致,起碼證明了并非代碼寫錯了。

如果一定要實現(xiàn)ps中的字體效果,需要想辦法實現(xiàn),當(dāng)一個用戶打開網(wǎng)站時,自動給用戶的電腦安裝字體,讓網(wǎng)頁可以識別。或者,讓ued妥協(xié),用常用的字體。再或者,這段效果只是一小部分的話,直接截圖吧。

2018年3月24日 01:02