PDA

View Full Version : سوال: مشکل فونت وبسایت



ghasem110deh
دوشنبه 02 آذر 1394, 10:23 صبح
سلام به همه ...
دوستان من توی head از کد زیر استفاده کردم واسه تعیین فونت سایت :



font-face { font-family: "yekan"; src: url(fonts/Yekan.eot); src: url(fonts/Yekan.eot?#iefix) format("embedded-opentype"), url(fonts/Yekan.woff) format("woff"), url(fonts/Yekan.ttf) format("truetype"), url(fonts/Yekan.svg#BYekan) format("svg"); font-weight: normal; font-style: normal}

ولی خروجی ش این شده (تصویر ضمینه)

توی body هم که ریختم همین شد ! کدش مشکل نداره !؟

kioosk10
دوشنبه 02 آذر 1394, 10:42 صبح
سلام دوست عزیز. توی head که می نویسید باید از تگ استایل استفاده کنید:


<style>
font-face { font-family: "yekan"; src: url(fonts/Yekan.eot); src: url(fonts/Yekan.eot?#iefix) format("embedded-opentype"), url(fonts/Yekan.woff) format("woff"), url(fonts/Yekan.ttf) format("truetype"), url(fonts/Yekan.svg#BYekan) format("svg"); font-weight: normal; font-style: normal}

body {
font-family: "yekan";}
</style>