القلم الذهبي

القلم الذهبي (https://www.hanaenet.com/vb/index.php)
-   منتدى البرمجة وتطوير المواقع (https://www.hanaenet.com/vb/forumdisplay.php?f=69)
-   -   تغير شكل الاقسام الفرعية في قائمة منسدلة Css3 (https://www.hanaenet.com/vb/showthread.php?t=26990)

رشيد برادة 07-24-2016 01:30 AM

تغير شكل الاقسام الفرعية في قائمة منسدلة Css3
 
اليوم اقدم لكم شرح تغير شكل الاقسام الفرعية وعرضها في قائمة منسدله بتقنية Css3
أو ما يعرف بـ dropdown

:: صورة توضيحية ::

http://www.hanaenet.com/vb/imgcache/2/26568alsh3er.gif

التعديل على قالبين في الاستايل
الاول forumhome_forumbit_level2_post
الثاني forumhome_subforumbit_post


:: الشرح ::

نبحث في القالب الاول forumhome_forumbit_level2_post عن :
كود:

<if condition="$show['subforums']">
كما في الصورة :

http://www.hanaenet.com/vb/imgcache/2/26569alsh3er.gif

نستبدله بـ :

كود PHP:

<ul class="dropdown">
    <
li>$vbphrase[subforums]</li>
    <
ul class="dropdown-content">
        <
li>$forum[subforums]</li>
    </
ul>
</
ul

ثم نضغط على حفظ وإعادة التحميل
انتهينا من القالب الاول http://www.hanaenet.com/vb/imgcache/2/26570alsh3er.gif

نبحث في قالب الثاني forumhome_subforumbit_post عن


كود PHP:

<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]/> 

ونقوم بحذفه ، كما في الصورة :

http://www.hanaenet.com/vb/imgcache/2/26571alsh3er.gif

ثم نضغط على حفظ وإعادة التحميل
انتهينا من القالب الثاني http://www.hanaenet.com/vb/imgcache/2/26572alsh3er.gif

تبقى لنا اضافة خصائص Css
نحدد الاستايل ونختار css رئيسي

http://www.hanaenet.com/vb/imgcache/2/26573alsh3er.gif

في نهاية الحقل الثاني تعاريف CSS الإضافية/Additional CSS Definitions
نضيف الكود التالي :
كود PHP:

          

.dropdown {
    
positionrelative;
    
displayinline-block;
    
background-color#113366;
    
padding5px;
    
border-radius7px;
    
fontbold 11px 'Exo 2''Droid Arabic Kufi'tahoma;
}
ul.dropdown li {
    list-
stylenone;
    
fontbold 11px 'Exo 2''Droid Arabic Kufi'tahoma;
    
color#FFF;
}


.dropdown-content {
    
displaynone;
    
positionabsolute;
    
border-radius7px;
    
-min-width160px;
    
margin6px;
    
z-index1;
    
background-color#FFF;
    
padding10px 10px;
    
border2px solid #CCC;
}


.dropdown-content a {
    
positionrelative;
    
displayblock;
    
background-color#113366;
    
padding5px;
    
color#FFF;
    
border-radius7px;
    
fontbold 11px 'Exo 2''Droid Arabic Kufi'tahoma;
    
text-decorationnone;
    
min-width160px;
    
border2px solid #CCC;
}

.dropdown-content a:hover {
    list-
stylenone;
    
fontbold 11px 'Exo 2''Droid Arabic Kufi'tahoma;
    
color#113366;
    
background-color#FFF;
    
border2px solid #CCC;
}


.dropdown:hover .dropdown-content {
    
displayblock;
}

.dropdown ul li:before {
    
border-right7px solid transparent;
    
border-bottom7px solid #FFF;
    
border-left7px solid transparent;
    
border-bottom-color#FFF;
    
content'';
    
displayinline-block;
    
positionabsolute;
    
right16px;
    
top: -7px;


انتهى الشرح http://www.hanaenet.com/vb/imgcache/2/26574alsh3er.gif



الحواط 07-24-2016 09:57 AM

رد: تغير شكل الاقسام الفرعية في قائمة منسدلة Css3
 
مشكوووووور والله يعطيك الف عافيه

رشيد برادة 07-24-2016 12:40 PM

رد: تغير شكل الاقسام الفرعية في قائمة منسدلة Css3
 
أرجو أن يكون أعجبكم التطبيق على الموقع
تحياتي

مغربي 07-24-2016 02:45 PM

رد: تغير شكل الاقسام الفرعية في قائمة منسدلة Css3
 
مشكوووووور والله يعطيك الف عافيه


الساعة الآن 08:55 PM

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. TranZ By Almuhajir
هذا الموقع يتسخدم منتجات Weblanca.com
new notificatio by 9adq_ala7sas
جميع الحقوق محفوظة لموقع القلم الذهبي

اختصار الروابط

1 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 56 58 63 65 66 69 70 76 77 84 85 86 88 91 95 104 106 111 112 118 119 120 122 123 124 128 137 138 139 141 143