سلام.
چرا glyphicon ها نمایش داده نمی شوند؟
همه آدرس دهی ها صحیح است .
@font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg'); }
این هم کد من:
<button type="button" class="btn btn-info"> <span class="glyphicon glyphicon-search"></span></button>
سلام آدرس دهی اول اصلا نیازی بهش نیست!!!که تو شما توی کدت نوشتی فقط کافی رفرنس ها رو در layout اصلی که همون bootstrap.min.css , وbootsrap.min.js هست اضافه کنی کهفعلن برای آوردن glyphicon ها کافیه
sample ها توی سایت getboostrap هست اما باز یک نمونه میزارم
<button type="button" class="btn btn-default btn-lg"> <span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star </button>
موفق باشید
شما باید .. را حذف کنید
@font-face { font-family: 'Glyphicons Halflings'; src: url('/fonts/glyphicons-halflings-regular.eot'); src: url('/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg'); }
از فایل bootstrap.min.css حذف کنم؟
چون جای دیگه ای اضافه نکردم!!!!!!
بله
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)