In Jade/Pug, you can add a style tag in the header by using the pipe (|
) followed by your CSS code. Here’s how you can achieve this:
jadehtml head style(type="text/css"). table { width: 100%; } body table
The |
is used to indicate a block of text in Jade/Pug, which is then rendered as-is without any interpretation. This should help you include your CSS code in the header without any syntax errors.
مقالات ذات صلة
المزيد من المعلومات
في لغة Jade/Pug، يمكنك إضافة عنصر
في العنوان
باستخدام السطر style(type="text/css")
مع تعريف CSS داخل العنصر. هذا يتيح لك تضمين قواعد CSS في ملف Jade/Pug الخاص بك. تأكد من أن المحتوى الذي تريد تضمينه يتبع قواعد CSS الصحيحة.