السلام عليكم ورحمة الله وبركاته
اسعد الله اوقاتكم
قررنا اتباع المعايير القياسيه رغم تعقيداتها ولاكن يجب علينا مواكبه التطور دائما
متى واينما وجد
بالعادة لا احب ان اسأل واحب ان احل المشاكل واكتشف الاشياء بنفسي
لاكن هناك امر عقدني كثيرا في المعايير القياسيه
بحثت بمدرسه w3 عن حل ولاكني لم اجد
الخطأ كان او مازال هو التالي
كود:
<style type="text/css">
يظهر عند فحص المنتدى
واليكم النتيجة كامله
كود:
Error Line 346 column 22: document type does not allow element "style" here.
<style type="text/css">
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body"
طبعا وضعته قبل داخل الـ head والـ html والـbody ولاكن للاسف تظهر اخطاء اكثر
الان وهو بهذا الشكل في بدايه الصفحه
كود:
<style type="text/css">
.style1 {
background-image: url('xxxx.gif');
}
.style2 {
background-image: url('xxxx.gif');
}
.style3 {
background-image: url('xxxx.gif');
}
</style>
يظهر لي خطأ واحد وهو
كود:
<style type="text/css">
اما اذا كان بهذا الشكل
كود:
<head>
<style type="text/css">
.style1 {
background-image: url('xxxx.gif');
}
.style2 {
background-image: url('xxxx.gif');
}
.style3 {
background-image: url('xxxx.gif');
}
</style>
</head>
يظهر لي خطأين
وهي
الوسم
الخطأ الاول والخطأ الثاني ويختفي السابق
وكذالك الحال مع بقيه الاوسمه الرئيسيه
طبعا الشغل هذا كله بالهيدر
عذرا للاطاله واتمنى الافادة والاستفادة من خبراتكم
شكرا جزيلا