SMF ครับ ทำไมเข้าผ่าน ie แล้วเว็บผมเอียงซ้ายไปได้ล่ะครับ เข้าผ่าน ff ปรกติครับ

เริ่มโดย vava, 10 มิถุนายน 2012, 16:16:00

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

vava

ช่วยด้วยครับ เข้าผ่าน ie แล้วเว็บเอียงซ้ายครับ ไม่รู้ว่าไปแก้โคดตรงไหนผิด  :o


ขอบคุณมากครับ
[direct=http://www.somsaishop.com]สบู่ส้มใส เก็บเงินปลายทาง[/direct]
[direct=https://www.thaiwebb.com]Thaiwebb.com[/direct]
[direct=https://skin365.shop/]SKIN365[/direct]

spalner


ไปเเก้อะไรมาก่อนหน้านี้หรือเปล่าครับ IE ชอบเพี๊ยนตลอดไม่เหมือนชาวบ้านเขา ลองเเก้กลับดูครับ

princmeen

สำหรับ IE ต้อง Fix ค่า Left , Right, Center ด้วย
ถ้าปล่อยไว้เฉยๆก็เป็นค่า Default คือไปซ้ายนั่นเอง

hajobdee




เพิ่มเติมอีกนิดนะครับ สำหรับ SMF เวลาแก้ไขไฟล์ อย่าใช้ notepad แก้ไข ให้ใช้โปรแกรมพวก text editer เช่น Dreamweaver แก้ไข

ถ้าใช้ notepad แก้ไขไปแล้ว บางที่ Firefox+Chrome+Opera มันจะเห็นหน้าเว็บปกติ แต่ IE เห็นหน้าเว็บเพี้ยนไปเลยครับ

vava

[direct=http://www.somsaishop.com]สบู่ส้มใส เก็บเงินปลายทาง[/direct]
[direct=https://www.thaiwebb.com]Thaiwebb.com[/direct]
[direct=https://skin365.shop/]SKIN365[/direct]


vava

[direct=http://www.somsaishop.com]สบู่ส้มใส เก็บเงินปลายทาง[/direct]
[direct=https://www.thaiwebb.com]Thaiwebb.com[/direct]
[direct=https://skin365.shop/]SKIN365[/direct]

hajobdee



ลองดูที่ไฟล์ ธีมที่ใช้\css\index.css แถวๆ body ว่าได้มีการกำหนดไว้ตามที่คุณ princmeen แนะนำหรือเปล่านะครับ หรือไม่ก็เอาไฟล์เดิมก่อนการแก้ไขมาทับดูก่อน คาดว่าน่าจะเกิดการผิดพลาดจากโค๊ด <div> ครับ

hajobdee




ขออภัย ตอบผิดนึกว่า SMF 2.0 ถ้า 1.1.15 ให้ดูที่ไฟล์ ธีมที่ใช้\style.css ครับ  :P

vava

1.1.15 ครับ แก้ไม่เป็นเลยแม้แต่น้อย  :'(


โคดครับ


/* Normal, standard links. */
a:link {
color: #808080;
text-decoration: none;
}

a:visited {
color: #757575;
text-decoration: none;
}

a:hover {
color: #16b7c5;
}

/* Navigation links - for the link tree. */
.nav, .nav:link, .nav:visited {
color: #8f8f8f;
text-decoration: none;
}

a.nav:hover {
color: #16b7c5;
text-decoration: none;
}

/* Tables should show empty cells. */
table {
empty-cells: show;
}

/* By default (td, body..) use verdana in black. */
body, td, th , tr {
font-family: verdana, arial, helvetica, sans-serif;
line-height: 145%;
color: #808080;
font-size: 14px;
}

/* The main body of the entire forum. */
body {
margin: 0;
padding: 0;
background: #ffffff;
}

/* Input boxes - just a bit smaller than normal so they align well. */
input, textarea, button {
color: #808080;
font-family: verdana, sans-serif;
}

input, button {
font-size: 110%;
}

textarea {
font-size: 110%;
color: #000;
font-family: verdana, sans-serif;
}

/* All input elements that are checkboxes or radio buttons. */
input.check {
}

/* Selects are a bit smaller, because it makes them look even better 8). */
select {
font-size: 110%;
font-weight: normal;
color: #000;
font-family: verdana, sans-serif;
}

/* Standard horizontal rule.. ([hr], etc.) */
hr, .hrcolor {
height: 1px;
border: 0;
color: #666;
background-color: #a7a5a5;
}

/* No image should have a border when linked */
a img {
border: 0;
}

/* A quote, perhaps from another post. */
.quote {
color: #3a3a3a;
background-color: #efefef;
border: 1px solid #cfcfcf;
margin: 4px;
padding: 4px;
font-size: 14;
line-height: 1.4em;
}

/* A code block - maybe even PHP ;). */
.code {
color: #3a3a3a;
background-color: #eff9fa;
/*font-family: "courier new", "times new roman", monospace;*/
font-size: x-small;
line-height: 1.3em;
/* Put a nice border around it. */
border: 1px solid #ddf7f9;
margin: 1px auto 1px auto;
padding: 1px;
width: 99%;
/* Don't wrap its contents, and show scrollbars. */
white-space: nowrap;
overflow: auto;
/* Stop after about 24 lines, and just show a scrollbar. */
max-height: 24em;
}

/* The "Quote:" and "Code:" header parts... */
.quoteheader, .codeheader {
color: #000;
text-decoration: none;
font-style: normal;
font-weight: bold;
font-size: x-small;
line-height: 1.2em;
}

/* Generally, those [?] icons.  This makes your cursor a help icon. */
.help {
cursor: help;
}

/* /me uses this a lot. (emote, try typing /me in a post.) */
.meaction {
color: red;
}

/* The main post box - this makes it as wide as possible. */
.editor {
width: 96%;
}

/* Highlighted text - such as search results. */
.highlight {
background-color: yellow;
font-weight: bold;
color: black;
}

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg {
padding: 5px;
background-color: #f7f5f5;
}

.windowbg2 {
padding: 5px;
background-color: #f7f5f5;
}

.windowbg3 {
padding: 5px;
background-color: #fff;
}
/* the today container in calendar */
.calendar_today {
background-color: #fff;
}

/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td {
color: #16b7c5;
font-style: normal;
background: #f0eeee url(images/titlebg.png) repeat-x;
padding-left: 10px;
padding-right: 10px;
line-height: 23px;
border-bottom: 0px solid #fff;
}
.titlebg, .titlebg a:link, .titlebg a:visited {
font-weight: bold;
color: #16b7c5;
font-style: normal;
}

.titlebg a:hover {
text-decoration: underline;
}

/* same as titlebg, but used where bold text is not needed */
.titlebg2 a:link, .titlebg2 a:visited {
color: #9937df;
font-style: normal;
text-decoration: none;
}

.titlebg, .titlebg2 {
color: #16b7c5;
font-family: Tahoma, sans-serif;
font-size: 11px;
font-weight: bold;
text-transform: uppercase;
}

.titlebg2 a:hover {
text-decoration: underline;
}

/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/
.catbg , tr.catbg td , .catbg3 , tr.catbg3 td {
background: #f0f0f0 url(images/catbg.png) repeat-x;
color: #fff;
padding-left: 10px;
padding-right: 10px;
line-height: 25px;
}

.catbg2 , tr.catbg2 td {
background: #f0f0f0 url(images/catbg.png) repeat-x;
color: #fff;
padding-left: 10px;
padding-right: 10px;
line-height: 25px;
}

.catbg, .catbg2, .catbg3 {
font-size: 11px;
font-weight: bold;
font-family: Tahoma, sans-serif;
}

.catbg, .catbg2 {
font-weight: bold;
}

.catbg3, tr.catbg3 td, .catbg3 a:link, .catbg3 a:visited {
font-size: 95%;
color: #fff;
text-decoration: none;
}

.catbg a:link, .catbg a:visited , .catbg2 a:link, .catbg2 a:visited {
color: #fff;
text-decoration: none;
}

.catbg a:hover, .catbg2 a:hover, .catbg3 a:hover {
color: #bbbbbb;
}

/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor {
background: #e4e4e4;
padding: 1px;
margin: 2px;
}

/* This is used on tables that should just have a border around them. */
.tborder {
}

/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.smalltext {
font-size: normal;
font-family: verdana, sans-serif;
}

.middletext {
line-height: 18px;
text-indent: 10px;
}

.normaltext {
font-size: small;
}

.largetext {
font-size: large;
}

/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage {
width: 100%;
overflow: auto;
line-height: 1.3em;
}

/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature {
width: 100%;
overflow: auto;
padding-bottom: 3px;
line-height: 1.3em;
}

/* Sometimes there will be an error when you post */
.error {
color: red;
}

/* definitions for the main tab, active means the tab reflects which page is displayed */
.maintab_first, .maintab_back, .maintab_last, .maintab_active_first, .maintab_active_back, .maintab_active_last {
color: white;
vertical-align: top;
}

.maintab_back, .maintab_active_back {
color: white;
text-decoration: none;
font-size: 10px;
vertical-align: top;
padding: 2px 6px 2px 6px;
font-family: tahoma, sans-serif;
font-weight: bold;
}

.maintab_first {
background: #a7a5a5 url(images/maintab-left.gif) 0 100% no-repeat;
width: 10px;
}

.maintab_back {
background: #a7a5a5;
}

.maintab_last {
background: #a7a5a5 url(images/maintab-right.gif) 100% 100% no-repeat;
width: 10px;
}

.maintab_active_first {
background: #16b7c5 url(images/mirrortab-active-left.gif) 0 0 no-repeat;
width: 8px;
}

.maintab_active_back {
background: #16b7c5;
}

.maintab_active_last {
background: #16b7c5 url(images/mirrortab-active-right.gif) 100% 0 no-repeat;
width: 8px;
}

/* how links behave in main tab. */
.maintab_back a:link , .maintab_back a:visited, .maintab_active_back a:link , .maintab_active_back a:visited {
color: white;
text-decoration: none;
}

.maintab_back a:hover, .maintab_active_back a:hover {
color: #ffffff;
text-decoration: none;
}

/* definitions for the mirror tab */
.mirrortab_first, .mirrortab_back, .mirrortab_last, .mirrortab_active_first, .mirrortab_active_back, .mirrortab_active_last {
color: white;
vertical-align: top;
}

.mirrortab_back, .mirrortab_active_back {
color: white;
text-decoration: none;
font-size: 10px;
vertical-align: top;
padding: 2px 6px 2px 6px;
font-family: tahoma, sans-serif;
font-weight: bold;
}

.mirrortab_first {
background: #16b7c5 url(images/mirrortab-left.gif) 0 0 no-repeat;
width: 10px;
}

.mirrortab_back {
background: #16b7c5;
}

.mirrortab_last {
background: #16b7c5 url(images/mirrortab-right.gif) 100% 0 no-repeat;
width: 10px;
}

.mirrortab_active_first {
background: #a7a5a5 url(images/maintab-active-left.gif) 0 0 no-repeat;
width: 8px;
}

.mirrortab_active_back {
background: #a7a5a5;
}

.mirrortab_active_last {
background: #a7a5a5 url(images/maintab-active-right.gif) 100% 0 no-repeat;
width: 8px;
}

/* how links behave in mirror tab. */
.mirrortab_back a:link , .mirrortab_back a:visited, .mirrortab_active_back a:link , .mirrortab_active_back a:visited {
color: white;
text-decoration: none;
}

.mirrortab_back a:hover, .mirrortab_active_back a:hover {
color: #343434;
text-decoration: none;
}

/* The AJAX notifier */
#ajax_in_progress {
background: #32CD32;
color: white;
text-align: center;
font-weight: bold;
font-size: 18pt;
padding: 3px;
width: 100%;
position: fixed;
top: 0;
left: 0;
}

#body-top {
background: #ffffff url(images/bg.gif) repeat-x;
padding: 0;
margin: 0;
}

#mainarea {
background: #f0f0f0;
padding: 5px 10px 10px 10px;
margin: 0;
}

#header {
position: relative;
height: 171px;
overflow: hidden;
background: #343434 url(images/header-bg.gif) repeat-x;
}

#headerleft {
height: 171px;
background: url(images/header-left.gif) 0 0 no-repeat;
position: relative;

}

#headerright {
height: 171px;
background: url(images/header-right.gif) 100% 0 no-repeat;
position: relative;
}

#container {
width: 950px;
margin: 0px auto 20px auto;
}

#logo, #logo a {
position: absolute;
top: 51px;
left: 0;
display: block;
width: 400px;
height: 90px;
background: url(images/logo.gif) no-repeat;
}

#welcome {
font-size: 1.0em;
color: #999;
font-family: tahoma, sans-serif;
float: right;
padding: 20px 30px 0 0;
text-align: right;
}

#welcome a:link, #welcome a:visited {
color: #808080;
font-weight: bold;
}

#welcome a:hover {
text-decoration: underline;
}

#footer {
background: #343434 url(images/footer-bg.gif) 0 0 repeat-x;
text-align: center;
margin: 0;
padding: 0;
font-size: 10px;
color: #909090;
}

#footer-left {
background: url(images/footer-left.gif) 0 0 no-repeat;
}

#footer-right {
background: url(images/footer-right.gif) 100% 0 no-repeat;
height: 80px;
overflow: hidden;
}

#footer a:link , #footer a:visited{
color: #707070;
}

#footer a:hover{
color: #aaa;
}

#menubar {
margin: 0;
padding: 0;
height: 45px;
}

#topmenu {
display: block;
position: relative;
height: 25px;
font-size: 11px;
font-weight: bold;
margin: 0;
float: left;
padding: 20px 0 0 10px;
font-family: tahoma, sans-serif;
}

#topmenu  ul {
margin: 0px;
padding: 0;
list-style-type: none;
width: auto;
float: left;
}

#topmenu  ul li {
display: block;
float: left;
margin: 0 1px;
}

#topmenu  ul li a {
display: block;
float: left;
color: #fff;
text-decoration: none;
padding: 0 0 0 13px;
height: 25px;
line-height: 25px;
}

#topmenu  ul li a span {
padding: 0 13px 0 0;
}

#topmenu ul li a:hover {
color: #fff;
background: #a7a5a5 url(images/topmenu-left2.gif) 0 0 no-repeat;
}

#topmenu ul li a:hover span {
display: block;
width: auto;
background: #a7a5a5 url(images/topmenu-right2.gif) 100% 0 no-repeat;
}

#topmenu ul li a.current {
color: #fff;
background: #16b7c5 url(images/topmenu-left.gif) 0 0 no-repeat;
}

#topmenu ul li a.current span {
display: block;
width: auto;
background: #16b7c5 url(images/topmenu-right.gif) 100% 0 no-repeat;
}
.txtSpecial {
FONT-WEIGHT: bold; FONT-SIZE: 19px; COLOR: #FF0000; FONT-FAMILY: Tahoma, "Microsoft Sans Serif", "MS Sans Serif", sans-serif
}
[direct=http://www.somsaishop.com]สบู่ส้มใส เก็บเงินปลายทาง[/direct]
[direct=https://www.thaiwebb.com]Thaiwebb.com[/direct]
[direct=https://skin365.shop/]SKIN365[/direct]

mymo

อ้างถึงจาก: hajobdee ใน 10 มิถุนายน 2012, 17:53:30



เพิ่มเติมอีกนิดนะครับ สำหรับ SMF เวลาแก้ไขไฟล์ อย่าใช้ notepad แก้ไข ให้ใช้โปรแกรมพวก text editer เช่น Dreamweaver แก้ไข

ถ้าใช้ notepad แก้ไขไปแล้ว บางที่ Firefox+Chrome+Opera มันจะเห็นหน้าเว็บปกติ แต่ IE เห็นหน้าเว็บเพี้ยนไปเลยครับ



ตามนี้   :P เป้นบ่อยเลย แต่ก่อนไม่รู้ 

vava

อ้างถึงจาก: mymo ใน 10 มิถุนายน 2012, 18:38:01
อ้างถึงจาก: hajobdee ใน 10 มิถุนายน 2012, 17:53:30



เพิ่มเติมอีกนิดนะครับ สำหรับ SMF เวลาแก้ไขไฟล์ อย่าใช้ notepad แก้ไข ให้ใช้โปรแกรมพวก text editer เช่น Dreamweaver แก้ไข

ถ้าใช้ notepad แก้ไขไปแล้ว บางที่ Firefox+Chrome+Opera มันจะเห็นหน้าเว็บปกติ แต่ IE เห็นหน้าเว็บเพี้ยนไปเลยครับ



ตามนี้   :P เป้นบ่อยเลย แต่ก่อนไม่รู้ 

ตอนนี้ใช้ไปแล้วน่ะครับ ไม่ทราบต้องแก้ไขยังไงดีครับ เอียงซ้ายมาเลย  :wanwan031:
[direct=http://www.somsaishop.com]สบู่ส้มใส เก็บเงินปลายทาง[/direct]
[direct=https://www.thaiwebb.com]Thaiwebb.com[/direct]
[direct=https://skin365.shop/]SKIN365[/direct]

vava

[direct=http://www.somsaishop.com]สบู่ส้มใส เก็บเงินปลายทาง[/direct]
[direct=https://www.thaiwebb.com]Thaiwebb.com[/direct]
[direct=https://skin365.shop/]SKIN365[/direct]

pawitk

ขอตอบแบบคนไม่ค่อยเก่งแต่อยากช่วยครับ

คือต้องหา file .css ที่มีโค้ด if ie6 หรือ if ie... อะไรประมาณนี้ครับ ดูใน .css หลักของเว็บ
แต่บางทีมันทำแยกออกมาครับเป็น ie6.css ie7.css ...etc

แต่ถ้าเป็นผม คงจะไป copy .css อันเก่าๆที่เกียวกับการจัดตำแหน่ง มาแทนที (ไล่ดูเฉพาะบางโค้ดนะครับ) แล้วค่อยๆแก้ใหม่ดีกว่า

ปล.ผมยังไม่เคยลอง smf เลยขอพูดคลุมๆทุก cms ครับ
ไฟมันดับ ขอกลับไปทำงานประจำแป้บ...

vava

[direct=http://www.somsaishop.com]สบู่ส้มใส เก็บเงินปลายทาง[/direct]
[direct=https://www.thaiwebb.com]Thaiwebb.com[/direct]
[direct=https://skin365.shop/]SKIN365[/direct]

hajobdee




อ้าว..ยังแก้ไขไม่ได้เหรอครับ เท่าที่รู้ผมก็แนะนำไปแล้ว เหลือแต่ที่ไม่รู้นี่แหละ  :P

ลองเปลี่ยนธีมที่ใช้ดูก่อนมั๊ยครับ หรือลองย้อนขั้นตอนที่ทำ คุณอาจจะพลาดตรงไหนซักที่ก็ได้ครับ

vava

อ้างถึงจาก: hajobdee ใน 11 มิถุนายน 2012, 15:08:53



อ้าว..ยังแก้ไขไม่ได้เหรอครับ เท่าที่รู้ผมก็แนะนำไปแล้ว เหลือแต่ที่ไม่รู้นี่แหละ  :P

ลองเปลี่ยนธีมที่ใช้ดูก่อนมั๊ยครับ หรือลองย้อนขั้นตอนที่ทำ คุณอาจจะพลาดตรงไหนซักที่ก็ได้ครับ

ขอบคุณครีบ  :'(
[direct=http://www.somsaishop.com]สบู่ส้มใส เก็บเงินปลายทาง[/direct]
[direct=https://www.thaiwebb.com]Thaiwebb.com[/direct]
[direct=https://skin365.shop/]SKIN365[/direct]

ghostbehead

ผมก็เคยเป็น แต่จำไม่ได้ละแก้ไขยังไง
ซึ่งไม่ได้เป็นที่ code แน่ครับเท่าที่ดู น่าจะปกติดีครับ

แต่ถ้าเป็นอย่างที่คนอื่นบอกก็ลองแก้ไข encode ของ file ให้เป็น utf-8 ดูนะครับ

โดยใช้ notepad เปิดแล้ว save as ก่อนกด save ก็เลือก encode ซะหน่อย
[direct=http://tinytastebake.com/]ขาย Brownie Brownie Cracker[/direct][direct=http://shoesdeedee.com/]ขายคอนเวิร์สมือสอง รองเท้ามือสอง[/direct]<br />[direct=http://isareeya.com/]บทความ ข่าวสาร เทคโนโลยี[/direct]<br />[direct=http://sangsanweb.com/]รับทำเว็บไซต์ PHP Wordpress[/direct]

vava

อ้างถึงจาก: ghostbehead ใน 11 มิถุนายน 2012, 15:30:51
ผมก็เคยเป็น แต่จำไม่ได้ละแก้ไขยังไง
ซึ่งไม่ได้เป็นที่ code แน่ครับเท่าที่ดู น่าจะปกติดีครับ

แต่ถ้าเป็นอย่างที่คนอื่นบอกก็ลองแก้ไข encode ของ file ให้เป็น utf-8 ดูนะครับ

โดยใช้ notepad เปิดแล้ว save as ก่อนกด save ก็เลือก encode ซะหน่อย

encode ไฟล์ style.css น่ะเหรอครับ

[direct=http://www.somsaishop.com]สบู่ส้มใส เก็บเงินปลายทาง[/direct]
[direct=https://www.thaiwebb.com]Thaiwebb.com[/direct]
[direct=https://skin365.shop/]SKIN365[/direct]

ghostbehead

ลองทั้ง css และ ตัว php ครับ

ไม่แน่ใจว่าใช่รึเปล่านะ

ปล. อย่าลืม backup file ด้วยครับ

อ่ออีกอย่าง ลองเปลี่ยนกลับไปกลับมา ANSI กับ UTF-8
[direct=http://tinytastebake.com/]ขาย Brownie Brownie Cracker[/direct][direct=http://shoesdeedee.com/]ขายคอนเวิร์สมือสอง รองเท้ามือสอง[/direct]<br />[direct=http://isareeya.com/]บทความ ข่าวสาร เทคโนโลยี[/direct]<br />[direct=http://sangsanweb.com/]รับทำเว็บไซต์ PHP Wordpress[/direct]