<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Standard Magazine - Forum - IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
	<link rel="self" href="http://forum.standardmag.org/extern.php?action=feed&amp;tid=1597&amp;type=atom"/>
	<updated>2008-12-31T07:29:54Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.standardmag.org/viewtopic.php?id=1597</id>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=14354#p14354"/>
			<content type="html"><![CDATA[<p>저도 가끔겪는 버그이고..<br />IE에서 경험하는 제일 황당한 버그같에요<br />부모의 크기를 3px 늘리는거보다<br />제가 사용하는 방법은<br />position 값을 줘서 해결합니다.</p><p>&lt;style&gt;<br />&nbsp; &nbsp; .wrap {<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 200px;<br />&nbsp; &nbsp; &nbsp; &nbsp; margin-top: 50px;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; .left {<br />&nbsp; &nbsp; &nbsp; &nbsp; float: left;<br />&nbsp; &nbsp; &nbsp; &nbsp; display:inline;<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 100px;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; .right {<br />&nbsp; &nbsp; &nbsp; &nbsp; float: left;<br />&nbsp; &nbsp; &nbsp; &nbsp; display:inline;<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 100px;<br />&nbsp; &nbsp; &nbsp; &nbsp; position:relative;&nbsp; &nbsp;&lt;&lt;&lt;&lt;&lt;&lt;&lt; 이부분이 추가됬습니다.<br />&nbsp; &nbsp; }<br />&lt;/style&gt;</p><p>&lt;div class = &quot;wrap&quot;&gt;<br />&nbsp; &nbsp; &lt;div class = &quot;left&quot;&gt;100px&lt;/div&gt;<br />&nbsp; &nbsp; &lt;span&gt;&lt;/span&gt;<br />&nbsp; &nbsp; &lt;div class = &quot;right&quot;&gt;이 부분이 복사됨&lt;/div&gt;<br />&lt;/div&gt;</p>]]></content>
			<author>
				<name><![CDATA[Cicindela]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=4362</uri>
			</author>
			<updated>2008-12-31T07:29:54Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=14354#p14354</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=13058#p13058"/>
			<content type="html"><![CDATA[<p>어느방법이 제일 좋을지는 모르겠네요</p><p>주석을 위아래 삭제함으로써 해결이 되는것들을 주석을 삭제하자니 그건 좀 아닌듯싶고...</p><p>margin-right:-3px 혹은 부모의 크기를 3px늘려주는것은 무언가 레이아웃측면에서 크기로 쇼부를 치는속성이 강해서...좀 꺼려지네요..</p><p>위에 제가 해결한 방법에 대해서는 나오지 않은거 같아서 올려봅니다...</p><p>제일 황당한 해결법이면서 제 생각에 제일 깔끔한방법입니다...</p><p>&lt;style&gt;<br />&nbsp; &nbsp; .wrap {<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 200px;<br />&nbsp; &nbsp; &nbsp; &nbsp; margin-top: 50px;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; .left {<br />&nbsp; &nbsp; &nbsp; &nbsp; float: left;<br />&nbsp; &nbsp; &nbsp; &nbsp; display:inline;<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 100px;<br />&nbsp; &nbsp; &nbsp; &nbsp; background:white; //&lt;-추가 background:url(&#039;&#039;); 이런식도 가능<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; .right {<br />&nbsp; &nbsp; &nbsp; &nbsp; float: left;<br />&nbsp; &nbsp; &nbsp; &nbsp; display:inline;<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 100px;<br />&nbsp; &nbsp; }<br />&lt;/style&gt;</p><p>&lt;div class = &quot;wrap&quot;&gt;<br />&nbsp; &nbsp; &lt;div class = &quot;left&quot;&gt;100px&lt;/div&gt;<br />&nbsp; &nbsp; &lt;span&gt;&lt;/span&gt;<br />&nbsp; &nbsp; &lt;div class = &quot;right&quot;&gt;이 부분이 복사됨&lt;/div&gt;<br />&lt;/div&gt;</p><p>복사되는부분을 제외한 앞의 div등에 background 를 집어넣음으로써 해결이 가능합니다.</p>]]></content>
			<author>
				<name><![CDATA[nowandu]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=4838</uri>
			</author>
			<updated>2008-08-11T03:57:59Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=13058#p13058</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=10253#p10253"/>
			<content type="html"><![CDATA[<p>음;; 저케한상태서 주석을 달아보니 100px 가 복사 돼네요</p><p>그럼 이렇게 ? ㅋㅋㅋ</p><br /><p>&lt;style&gt;<br />&nbsp; &nbsp; .wrap {<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 200px;<br />&nbsp; &nbsp; &nbsp; &nbsp; margin-top: 50px;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; .wrap div {<br />&nbsp; &nbsp; &nbsp; &nbsp; display:inline;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; .left {<br />&nbsp; &nbsp; &nbsp; &nbsp; float: right<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 100px;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; .right {<br />&nbsp; &nbsp; &nbsp; &nbsp; float: right;<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 100px;<br />&nbsp; &nbsp; }<br />&lt;/style&gt;</p><p>&lt;div class=&quot;wrap&quot;&gt;<br />&nbsp; &nbsp; &lt;!-- 주석을 달아보자 --&gt;<br />&nbsp; &nbsp; &lt;div class=&quot;right&quot;&gt;이 부분이 복사됨&lt;/div&gt;<br />&nbsp; &nbsp; &lt;!-- 주석을 달아보자 --&gt;<br />&nbsp; &nbsp; &lt;div class=&quot;left&quot;&gt;100px&lt;/div&gt;<br />&nbsp; &nbsp; &lt;!-- 주석을 달아보자 --&gt;<br />&nbsp; &nbsp; &lt;span&gt;&lt;/span&gt;<br />&lt;/div&gt;</p>]]></content>
			<author>
				<name><![CDATA[ssamss]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=2446</uri>
			</author>
			<updated>2008-02-01T12:20:35Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=10253#p10253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=10252#p10252"/>
			<content type="html"><![CDATA[<p>&lt;style&gt;<br />&nbsp; &nbsp; .wrap {<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 200px;<br />&nbsp; &nbsp; &nbsp; &nbsp; margin-top: 50px;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; .wrap div {<br />&nbsp; &nbsp; &nbsp; &nbsp; display:inline;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; .left {<br />&nbsp; &nbsp; &nbsp; &nbsp; float: left;<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 100px;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; .right {<br />&nbsp; &nbsp; &nbsp; &nbsp; float: right;<br />&nbsp; &nbsp; &nbsp; &nbsp; width: 100px;<br />&nbsp; &nbsp; }<br />&lt;/style&gt;</p><p>&lt;div class=&quot;wrap&quot;&gt;<br />&nbsp; &nbsp; &lt;div class=&quot;right&quot;&gt;이 부분이 복사됨&lt;/div&gt;<br />&nbsp; &nbsp; &lt;div class=&quot;left&quot;&gt;100px&lt;/div&gt;<br />&nbsp; &nbsp; &lt;span&gt;&lt;/span&gt;<br />&lt;/div&gt;</p><br /><br /><p>가끔씩 쓰던 방식인데 <br />이런방식은 어떤가요?</p><p>컨텐츠의 순서가 바뀌어도 (스타일없을경우) 상관없는 부분이라면 괜찮을것도 같은데 말이죠..<br />아무래도 순서를 바꾸는건 안좋겠죠?</p>]]></content>
			<author>
				<name><![CDATA[ssamss]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=2446</uri>
			</author>
			<updated>2008-02-01T11:45:09Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=10252#p10252</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8829#p8829"/>
			<content type="html"><![CDATA[<p>&amp;nbsp; 대신에 주석으로 처리 합니다..<br />그런데 주석도 복사가 된다면 대략 난감하군요 ㅠㅠ<br />저는 원인을 부모보다도 큰 자식들이여서 에러가 생긴다고 생각하고 있었습니다... <br />보통 작긴하지만 보이지 않는 margin 과 padding등에 의하여.... 좀더 길어지거든요 없으면 안되기도 하고요 ㅎㅎ<br />뭐 어쨋든 전 주석으로 ㅡㅡ;</p>]]></content>
			<author>
				<name><![CDATA[돼랑이]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=1820</uri>
			</author>
			<updated>2007-09-14T00:26:43Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8829#p8829</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8724#p8724"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>naduhy2 wrote:</cite><blockquote><p>저도 경험한 적이 있는데 저같은 경우는 위의 경우와는 좀 다른 주석때문이었어요.</p><p>너무나 빈번한 주석 태그의 사용으로 맨 마지막 글자가 반복되더라구요.</p><p>여기저기 찾아봐서 주석을 지우는 걸로 문제는 해결되었지만, 그래도 뭔가 찜찜하더라구요.</p></blockquote></div><p>주석 또한 플로팅이 없는 태그로 인식을 하는 모양입니다..</p><div class="codebox"><pre><code>&lt;style&gt;
    .wrap {
        width: 200px;
        margin-top: 50px;
    }
    .left {
        float: left;
        display:inline;
        width: 100px;
    }
    .right {
        float: left;
        display:inline;
        width: 100px;
    }
&lt;/style&gt;

&lt;div class = &quot;wrap&quot;&gt;
    &lt;div class = &quot;left&quot;&gt;100px&lt;/div&gt;
    &lt;!--주석--&gt;
    &lt;div class = &quot;right&quot;&gt;이 부분이 복사됨&lt;/div&gt;
&lt;/div&gt;</code></pre></div><p>처음에 올린 소드와 주석 부분만 틀린 코드인데, 주석으로 인하여 버그가 생깁니다.</p><p>주석은 없으면 아쉽죠...</p><p>그럴때는 주석을 아래 코드와 같은 Conditional Comments로 바꾸면 됩니다.</p><div class="codebox"><pre><code>&lt;!--[if !IE]&gt;주석&lt;![endif]--&gt;</code></pre></div><p>이런 코드는 버그를 유발하지 않지만, 쓰기가 무지하게 귀찮다는 단점이 있습니다.. -_-a</p>]]></content>
			<author>
				<name><![CDATA[kikiroki]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=2215</uri>
			</author>
			<updated>2007-09-05T02:18:15Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8724#p8724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8713#p8713"/>
			<content type="html"><![CDATA[<p>부모 div 에 style=&quot;border:1px solid #FFFFF&quot; 이렇게 처리한 적도 있습니다.</p>]]></content>
			<author>
				<name><![CDATA[diddazoa]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=2206</uri>
			</author>
			<updated>2007-09-04T08:36:25Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8713#p8713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8712#p8712"/>
			<content type="html"><![CDATA[<p>음 저같은경우는 text-indent로 -5000정도 밀어넣엇는데도 <br />맨 마지막 글자가 화면 맨왼쪽 구석에 나오는 버그를 겪은적이있는데 ;;<br />이건 무슨버그인가요?<br />(해결못해서 그당시에 글자색을 fff로 줘버렸습니다 ;;)</p>]]></content>
			<author>
				<name><![CDATA[lunaticdream]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=1551</uri>
			</author>
			<updated>2007-09-04T08:26:42Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8712#p8712</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8670#p8670"/>
			<content type="html"><![CDATA[<p>제 경험으로는 ie6에서만 저런 문제가 발생했었구요.<br />원인은 부모태그보다 자식태그에 width 값이 길어지는 경우였습니다. 결론적으로는요....^^<br />저도 width 값을 딱 맞췄다고 생각했는데.. 어딘가 모르게 공백이라던지 수치값이 더 크게 되어있었구요.<br />해결방법은 floating를 연속해서 사용한경우 그 중간에 주석이 있으면 주석태그를 지워서 해결했구요.<br />또 한가지는 부모태그에 width 값이 정해져 있고 자식태그에 floating 했을경우 마지막 자식태그에만 floating 방향을 반대방향해서 이전 태그와에 공백을 주는 방법입니다.<br />대충 이런식으로 해결했던것 같습니다. 그렇지만 저 또한 정확히 문제를 파악하고 처리한것 같지 않은 찜찜함이 남아있네요. <br />다시 말해서 똑같이 css,태깅 모두다 같은 방법을 사용했는데.. 문제가 발생되는경우가 있고 아닌경우가 있으니...항상 문제가 발생되면 처리해야 하니 시간도 오래걸리고 머리도 아프고..^^ <br />정확한 원인이 뭘까요?</p>]]></content>
			<author>
				<name><![CDATA[정종선]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=657</uri>
			</author>
			<updated>2007-09-02T03:11:25Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8670#p8670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8667#p8667"/>
			<content type="html"><![CDATA[<p>저도 경험한 적이 있는데 저같은 경우는 위의 경우와는 좀 다른 주석때문이었어요.</p><p>너무나 빈번한 주석 태그의 사용으로 맨 마지막 글자가 반복되더라구요.</p><p>여기저기 찾아봐서 주석을 지우는 걸로 문제는 해결되었지만, 그래도 뭔가 찜찜하더라구요.</p><p>kikiroki님이 말씀해주신 내용도 많은 도움이 된 것 같습니다.</p><p>그래도 궁금한 것은.. 저 IE Duplicate Characters Bug 왜 생기는 걸까요? ㅡㅡ;</p>]]></content>
			<author>
				<name><![CDATA[naduhy2]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=421</uri>
			</author>
			<updated>2007-09-01T07:14:26Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8667#p8667</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8656#p8656"/>
			<content type="html"><![CDATA[<p>저 버그 때문에 전에 사이트 하나 마크업 완전 갈아치운적이 있었는데;;;;;</p>]]></content>
			<author>
				<name><![CDATA[나니]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=549</uri>
			</author>
			<updated>2007-09-01T00:12:55Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8656#p8656</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8641#p8641"/>
			<content type="html"><![CDATA[<p>아직도 저는 제대로 원인을 파악하지 못하여 그냥 마크업과 css를 다 지워버리고 다시 해버려서 해결합니다</p><p>원초적 방법이네요 -_-</p><p>원인을 찾아내려 노력하신 kikiroki 님 대단해요~~~~</p>]]></content>
			<author>
				<name><![CDATA[hoiheart]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=735</uri>
			</author>
			<updated>2007-08-31T13:40:36Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8641#p8641</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8635#p8635"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>kjy2143 wrote:</cite><blockquote><div class="codebox"><pre><code>&lt;div class=&quot;wrap&quot;&gt;
    &lt;div class=&quot;left&quot;&gt;100px&lt;/div&gt;&lt;!-- 테스트 --&gt;
    &lt;div class=&quot;right&quot;&gt;이 부분이 복사됨&lt;/div&gt;
    &lt;br style=&quot;clear:left;&quot; /&gt;
&lt;/div&gt;</code></pre></div><p>이런식의 방법도 있습니다~</p></blockquote></div><p>답글 감사합니다.</p><p>참고 url 로 올린 곳의 예제 코드인데,</p><div class="codebox"><pre><code>&lt;style&gt;
.demobox {
width: 250px; 
/*width: 259px;*/
border: 3px solid #4c6f42;
}

.demobox a:hover {
background: #dfd;  /*** This hover change triggers buggyness in the links ***/
}

.firstfloat {
float: left; 
width: 200px; 
background: #939a90; 
text-align: center; 
color: #fff;
}

.secondfloat {
float: left; 
width: 250px; 
/*margin-right: -9px;*/
margin-bottom: 2px; 
background: #fbdabb;
}

&lt;/style&gt;

&lt;!-- Begin live demo --&gt;

&lt;div class=&quot;demobox&quot;&gt;

&lt;div class=&quot;firstfloat&quot;&gt;First float&lt;/div&gt;

&lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; 
&lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; 
&lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; 
&lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; 
&lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; 
&lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; 
&lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; 
&lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; 
&lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; 
&lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt; &lt;!-- comment --&gt;

&lt;div class=&quot;secondfloat&quot;&gt;
&lt;p style=&quot;padding: 0 0 0 20px; margin-bottom: 2px; margin-top: 0; border: 1px solid #f00;&quot;&gt;
Second float&lt;br /&gt;&lt;br /&gt;

&lt;span style=&quot;background: #f2ab82;&quot;&gt;
In IE6 some of this text is replicated in a &quot;mystery block element&quot; that starts directly below 
the float. This light brown float has a 2px bottom margin which also duplicates into the mystery 
element, getting added to the bottom of the text if it is wrapped in a span as it has been 
here.
&lt;br /&gt;
&lt;a href=&quot;#&quot;&gt;Test&amp;nbsp;link&lt;/a&gt;
&lt;img src=&quot;images/pinecone3.jpg&quot; alt=&quot;&quot; style=&quot;border: 1px solid #3c4524;&quot; /&gt;
&lt;/span&gt;

&lt;/p&gt;
&lt;/div&gt;

&lt;div style=&quot;clear: both; background: #b2d4af;&quot;&gt;Cleared element&lt;/div&gt;
&lt;/div&gt;</code></pre></div><p>&lt;br /&gt; 태그에 style을 지정하지 않아도 되더군요.</p><p>하지만, 1번 방법에 따른 문제점과 같은 문제가 발생합니다.</p><p>&lt;br /&gt; 태그를 반복되는 글이 사라질때 까지 추가해야되죠.</p><p>style에 주석 해논 부분은 2, 3번 방법이구요.</p>]]></content>
			<author>
				<name><![CDATA[kikiroki]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=2215</uri>
			</author>
			<updated>2007-08-31T09:25:35Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8635#p8635</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8630#p8630"/>
			<content type="html"><![CDATA[<div class="codebox"><pre><code>&lt;div class=&quot;wrap&quot;&gt;
    &lt;div class=&quot;left&quot;&gt;100px&lt;/div&gt;&lt;!-- 테스트 --&gt;
    &lt;div class=&quot;right&quot;&gt;이 부분이 복사됨&lt;/div&gt;
    &lt;br style=&quot;clear:left;&quot; /&gt;
&lt;/div&gt;</code></pre></div><p>이런식의 방법도 있습니다~</p>]]></content>
			<author>
				<name><![CDATA[kjy2143]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=538</uri>
			</author>
			<updated>2007-08-31T08:50:32Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8630#p8630</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[IE Duplicate Characters Bug - 마지막 문자 복사 버그]]></title>
			<link rel="alternate" href="http://forum.standardmag.org/viewtopic.php?pid=8629#p8629"/>
			<content type="html"><![CDATA[<p>html로 사이트를 코딩(?) 하다보면 마지막 문자열이 복사되는 현상인 IE Duplicate Characters Bug 가 종종 발생합니다.</p><p>간단한 예제 코드는 다음과 같은데</p><div class="codebox"><pre><code>&lt;style&gt;
    .wrap {
        width: 200px;
        margin-top: 50px;
    }
    .left {
        float: left;
        display:inline;
        width: 100px;
    }
    .right {
        float: left;
        display:inline;
        width: 100px;
    }
&lt;/style&gt;

&lt;div class = &quot;wrap&quot;&gt;
    &lt;div class = &quot;left&quot;&gt;100px&lt;/div&gt;
    &lt;span&gt;&lt;/span&gt;
    &lt;div class = &quot;right&quot;&gt;이 부분이 복사됨&lt;/div&gt;
&lt;/div&gt;</code></pre></div><p>이곳 저곳에서 알아본 결과 IE6 버전에서 부터 발생하는 버그이지만, IE7 버전에서도 일어나는 현상입니다.</p><p>나름대로 혼자 원인 파악을 해본 결과,</p><p><strong>부모 태그 아래 자식 태그들의 총 너비가 부모 태그와 같고 -꽉 찼다는 말이죠- 자식 태그가 float:left 속성일 때 자식 요소들 사이에 float 속성이 없는 태그 또는 주석이 있으면 마지막 출력 태그 부분의 문자가 중복 출력되는 걸로 (스스로의 합의하에) 결론이 나왔습니다.</strong></p><p>그 float 속성이 없는 태그라는게, style 과 script 를 포함하는 거라 애매하더군요.</p><p>물론 표준에 따르면 style 과 script 는 head 사이에 넣어야 하지만, 사이트를 만드는 입장에서는 힘든일일 수 밖에 없습니다.</p><p>(각 페이지를 따로 만들고, 필요에 따라 각기 다른 페이지에서 불러다 쓰는 경우)</p><br /><br /><p>일단 해결 방법은,</p><p><strong>1. &lt;div class = &quot;iefix&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt; 같은 코드를 사용하는 법. (iefix 는 화면에 보이지 않게 하는 style)</strong></p><p><strong>2. 마지막 float 부분에 margin-right를 -3px 이상 추가하는 법.</strong></p><p><strong>3. 부모 태그의 넓이를 3px 이상 늘리는 법.</strong></p><p>이렇게 요약이 되더군요.</p><p>위 3가지 방법으로도 안되면 GG겠지만, 그런 경우는 아직까진 못본것 같습니다.</p><p>2, 3번 방법이 가장 효과적이고 코드를 깔끔하게 마무리 하는 방법이겠지만, 최악의 경우 3px 때문에 페이지의 디자인이 (과격하게 말하자면) 찢기는 일이 발생합니다.</p><p>처음부터 이 현상을 예상하고 디자인을 한다면 (혹은 코딩을 한다면) 대부분의 경우 괜찮겠지만, 이미 만들어진 페이지에 버그가 나타나면 난감하겠지요.</p><p>3번 방법을 약간 응용하여 넓이를 3px 늘리고 margin-right를 -3px로 주면 디자인의 변형은 일어나지 않지만 부모 태그에 배경이라도 있으면 낭패입니다.</p><p>그래서 1번 방법이 </p><p>가장 안정적으로 디자인의 변형이 없이 최소한의 노력으로 버그를 우회하는 방법인데, 어떤 경우에는 &amp;nbsp;를 반복되는 문자만큼 늘려야 해결이 되는 경우도 있습니다.</p><p>이는 html 코딩시에 예측하기 힘든 경우가 됩니다.</p><br /><br /><p>글이 좀 길어졌는데, 글의 목적은,</p><p>해당 버그를 다른 분들은 어떻게 해결하는지 궁금하기도 하고,</p><p>같은 문제로 고민하는 분들께 이 글을 작은 도움이 됬으면 하는 것입니다.</p><br /><br /><p>부디 다른 분들의 알찬 정보가 올라오기를 간절히 바라며 두서없는 글을 마침니다.... ;;</p><br /><br /><p>참고 : <a href="http://www.positioniseverything.net/explorer/dup-characters.html">http://www.positioniseverything.net/exp &#133; cters.html</a></p>]]></content>
			<author>
				<name><![CDATA[kikiroki]]></name>
				<uri>http://forum.standardmag.org/profile.php?id=2215</uri>
			</author>
			<updated>2007-08-31T08:17:00Z</updated>
			<id>http://forum.standardmag.org/viewtopic.php?pid=8629#p8629</id>
		</entry>
</feed>
