PDA

View Full Version : سوال: عدم نمایش iconicfont ها پس از آپلود سایت



omega_pc
یک شنبه 23 تیر 1392, 14:36 عصر
من چندتا iconicfont با پسوند .ttf و .wof تو سایتم استفاده کردم قبل از آپلود تو لوکال نمایش داده میشه ولی بعد از آپلود نشون نمیده؟

Progman.ir
یک شنبه 23 تیر 1392, 16:27 عصر
من چندتا iconicfont با پسوند .ttf و .wof تو سایتم استفاده کردم قبل از آپلود تو لوکال نمایش داده میشه ولی بعد از آپلود نشون نمیده؟

یه توضیح میدی با کد که چجوری قرار دادی؟

omega_pc
دوشنبه 24 تیر 1392, 07:49 صبح
تو فایل css اصلی این کد رو نوشتم
@font-face {
font-family: 'FontAwesome';
src: url('../font/fontawesome-webfont.eot?v=3.0.1');
src: url('../font/fontawesome-webfont.eot?#iefix&v=3.0.1') format('embedded-opentype'),
url('../font/fontawesome-webfont.woff?v=3.0.1') format('woff'),
url('../font/fontawesome-webfont.ttf?v=3.0.1') format('truetype'),
url('../font/fontawesome-webfont.svgf?v=3.0.1') format('svg');
font-weight: normal;
font-style: normal;
}

omega_pc
دوشنبه 24 تیر 1392, 07:53 صبح
البته من تو نت این مشکل رو جست و جو کردم که تو سایت stackoverflow این طور گفته بود:

If you don't have access to configure IIS, you can still add the header through ASP.NET by adding the following line to your source pages:
Response.AppendHeader("Access-Control-Allow-Origin","*");

من اینو امتحان کردم ولی نشد

meisam3322
دوشنبه 24 تیر 1392, 09:54 صبح
هیچ مشکلی نباید باشه با کدی که دوستان گذاشتن. آدرس های شما بر روی سرور به چه صورتی هست ؟؟؟؟

Progman.ir
دوشنبه 24 تیر 1392, 12:07 عصر
تو فایل css اصلی این کد رو نوشتم
@font-face {
font-family: 'FontAwesome';
src: url('../font/fontawesome-webfont.eot?v=3.0.1');
src: url('../font/fontawesome-webfont.eot?#iefix&v=3.0.1') format('embedded-opentype'),
url('../font/fontawesome-webfont.woff?v=3.0.1') format('woff'),
url('../font/fontawesome-webfont.ttf?v=3.0.1') format('truetype'),
url('../font/fontawesome-webfont.svgf?v=3.0.1') format('svg');
font-weight: normal;
font-style: normal;
}


کدی رو هم که از این فونت استفاده میکنه رو بزار ببینیم کامل

forestasphalt
دوشنبه 24 تیر 1392, 15:28 عصر
احتماله زیاد آدرس دهی شما مشکل داره
از ~ استفاده کن تا مسیر نسبی رو بهش بدی
اگه بازم نشد آدرس مطلق بده ببین اینبار کار میکنه یا نه؟


@font-face
{
font-family: "BKoodak";
font-style: normal;
font-weight: normal;
font-stretch: normal;
font-stretch: normal;
src: url("http://www.yoursite.com/Content/css/BKoodakBold.ttf") format("truetype");
}