הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   [שאלה] מאפייני דפדפן IE6 להתאמת קוד. (https://hosts.co.il/forums/showthread.php?t=68822)

Hezi & BomBas 27-10-08 19:59

בסדר , השאלה מה לשנות בקובץ style ל IE6?

Elad-A 27-10-08 20:09

תשים את הקוד הבא בקובץ ה CSS שלך (בתחילת הדף):

קוד:

html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {       
        margin:0;
        padding:0;
}
table {
        border-collapse:collapse;
        border-spacing:0;
}
fieldset,img {
        border:0;
}
address,caption,cite,code,dfn,em,strong,th,var {
        font-style:normal;
        font-weight:normal;
}
ol,ul,li {
        list-style:none;
        list-style-type:none;
}
caption,th {
        text-align:left;
}
h1,h2,h3,h4,h5,h6,th,td {
        font-size:100%;
        font-weight:normal;
}
q:before,q:after {
        content:'';
}
abbr,acronym {
        border:0;
}


זה יאפס את ההגדרות של הדפדפן.
עוד מידע, פה:
http://www.devign.co.il/Posts/css-attributes-reset.aspx

mayden 27-10-08 23:16

תעשה תנאי של CSS:
if IE 6
import style-ie6.css
endif

חפש בגוגל.

Hezi & BomBas 28-10-08 14:27

mayden , אני יודע איך לעשות את זה - השאלה מה לשים בקובץ CSS ל IE6.

אגב - אלעד, אני חייב לציין שיש לך בלוג ממש יפה! :) אבל הקוד שהבאת לא עבד :(

Elad-A 28-10-08 15:25

חח זה לא הבלוג שלי..
אגב, הקוד שהבאתי לך מאפס את ההגדרות CSS של הדפדפן.
מניסיון, לפעמים זה חוסך הרבה כאבי ראש.

ואני חושב שהבעיה אצלך היא שאתה לא מגדיר רוחב לכל DIV שאתה יוצר.

Hezi & BomBas 28-10-08 15:50

אה :D סליחה.

בקשר להגדרת הרוחב , לכל DIV יש רוחב אחר , אך לכולם אותו CLASS . מה לעשות?

להוסיף פשוט ב STYLE של אותו DIV אם זה רוחב אחר?

אני אנסה , תודה.

עריכה:
הגדרתי ל BLOCK רוחב , עדיין לא השתנה.
זה ה CSS שלי (הורדתי את הרוחב, זה עשה בעיות וזה גם לא דינאמי..)
HTML קוד:

<style type="text/css">
html,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {       
        margin:0;
        padding:0;
}
table {
        border-collapse:collapse;
        border-spacing:0;
}
fieldset,img {
        border:0;
}
address,caption,cite,code,dfn,em,strong,th,var {
        font-style:normal;
        font-weight:normal;
}
ol,ul,li {
        list-style:none;
        list-style-type:none;
}
caption,th {
        text-align:left;
}
h1,h2,h3,h4,h5,h6,th,td {
        font-size:100&#37;;
        font-weight:normal;
}
q:before,q:after {
        content:\'\';
}
abbr,acronym {
        border:0;
}
        body
        {
                background: #2d2d2d;
                font-family: arial, verdana, tahoma;
                font-size: 10pt;
                font-weight: normal;
                margin:0;
                padding:0;
        }
        a
        {
        text-decoration: none;       
        }
        input
        {
                font-family: arial, verdana;
                font-size: 10pt;
        }
        .wrapper
        {
                width: 960px;
                margin: 20px auto auto auto;
        }
        #logo
        {
                width: 279px;
                height: 115px;
                float: left;
        }
        .block
        {
                background: #161616;
                padding: 5px;
                color: #FFF;
        }
        #menu2 a
        {
                color: #000;
        }
                #menu a
        {
                color: #FFF;
        }
        </style>


Elad-A 28-10-08 16:12

תוסיף לו ב style את הרוחב הדרוש.

Hezi & BomBas 28-10-08 16:14

כמו שאמרתי , זה לא משתנה. נתתי את קוד ה CSS למעלה.

תודה על העזרה :)


כל הזמנים הם GMT +2. הזמן כעת הוא 12:58.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ