التصميم المستجيب "CSSRegistration ليس لديه خاصية عامة تسمية وسائل الإعلام"

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/85503

سؤال

أنا حاليا تطبيق تصميم استجابة على موقع إنترانت.لقد أضفت روابط عادية في الصفحة الرئيسية استنادا إلى خصائص MIN-WID و MAX العرض.وهو يعمل مثل سحر، لكنه لم يحدث عندما حاولت استخدام CSSERegistration.لسبب غير معروف، لا يحتوي CSSeRegistration على خاصية إعلامية (أنني أدرك).هل هناك طريقة للتغلب على هذه المشكلة باستخدام cssegistration بدلا من روابط HTML عادي؟ giveacodicetagpre.

إذا حاولت، أحصل على شاشة معروفة جيدا:

أدخل وصف الصورة هنا

هل كانت مفيدة؟

المحلول

As you say, there is no media attribute.

There are a couple of ways I can think of to handle this in SharePoint:

  • Either use Device Channels to target different master pages to different devices
  • Or, add all of your responsive CSS to one file, containing the @media wrappers. This will also be better since if you for example resize your browser window, you get the appropriate css as you go.
  • A third way that comes to mind is using a combination of @media and @import tags in one CSS-file, loading in specific files with the @import into the @media attribute
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top