IE9에서 자꾸 스마트 에디터가 말썽부린다.
처음엔 에디터 자체가 보이지 않아, 구글링 해서 해결했는데..
이번엔 에디터 윗 부분이 짤려 보인다.(이러거 또 그냥 못넘어가지 ㅡ.ㅡ;)

대충 검색하니 마땅한 결과가 안나온다.. 아에 언급조차 안되고 있다. 버튼 어쩌고 저쩌고의 이슈에 묻혀 버린건가..

소스 열어서 이것저것 손대다 보니 된다. 

/se/css/default.css 파일의
#smart_editor{ position:relative; background:#fff;}
이 부분을
#smart_editor{ position:relative; background:#fff; border: solid 1px white;} 
일케 고쳐주면 되더라고?
 
다음 번에 또 다른 문제 생기면 다음 에디터로 갈아타봐야겠다.
스마트 에디터의 업데이트가 전혀 되지 않고 있는 듯 하다.. 

'Tip' 카테고리의 다른 글

emma 한글 깨짐  (0) 2011.07.01
IE8 Textarea Bug  (0) 2011.06.20
css fiexed  (0) 2011.03.31
크로스도메인 쿠키문제  (0) 2011.01.21
MySql insert select  (0) 2010.11.06
Posted by 기계식키보드
:

css fiexed

Tip 2011. 3. 31. 20:05 |
<style type="text/css">
.fixed-top    /* position fixed Top    */{position:fixed;bottom:auto;top:0px;}
.fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0px;top:auto;}
.fixed-left   /* position fixed Left   */{position:fixed;right:auto;left:0px;}
.fixed-right  /* position fixed right  */{position:fixed;right:0px;left:auto;}

* html,* html body   /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top    /* IE6 position fixed Top        */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
* html .fixed-right  /* IE6 position fixed right      */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));}
* html .fixed-bottom /* IE6 position fixed Bottom     */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));}
* html .fixed-left   /* IE6 position fixed Left       */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft));}
</style>

<div class="fixed-bottom" style="text-align:center; width:100%; left:0;"> <img src="
imagename.gif" border="0"> </div> 

'Tip' 카테고리의 다른 글

IE8 Textarea Bug  (0) 2011.06.20
IE9 스마트 에디터 상단 짤림  (2) 2011.05.31
크로스도메인 쿠키문제  (0) 2011.01.21
MySql insert select  (0) 2010.11.06
div가운데 정렬  (0) 2010.10.09
Posted by 기계식키보드
:

크로스도메인 쿠키문제

Tip 2011. 1. 21. 15:50 |

PHP:

header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');

ASP.NET:
HttpContext.Current.Response.AddHeader("p3p","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");

JSP:
response.addHeader("P3P","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"")


from url

http://jabsiri.tistory.com/tag/%ED%81%AC%EB%A1%9C%EC%8A%A4%EB%8F%84%EB%A9%94%EC%9D%B8%20%EC%BF%A0%ED%82%A4



'Tip' 카테고리의 다른 글

IE9 스마트 에디터 상단 짤림  (2) 2011.05.31
css fiexed  (0) 2011.03.31
MySql insert select  (0) 2010.11.06
div가운데 정렬  (0) 2010.10.09
말풍선 그럴싸한거  (0) 2010.09.26
Posted by 기계식키보드
:

MySql insert select

Tip 2010. 11. 6. 15:13 |
insert시 max()+1을 할경우가 생겨서 다음과 같이 날렸다.

INSERT INTO rankmanage (rank,category,refseq)
  SELECT max(rank)+1, 'categoryname', 113
  FROM rankmanage
  limit 1

'Tip' 카테고리의 다른 글

css fiexed  (0) 2011.03.31
크로스도메인 쿠키문제  (0) 2011.01.21
div가운데 정렬  (0) 2010.10.09
말풍선 그럴싸한거  (0) 2010.09.26
JSP 달력 만들기  (0) 2010.09.10
Posted by 기계식키보드
:

div가운데 정렬

Tip 2010. 10. 9. 00:05 |
from 네이년 지식인

<div style="height:200px; margin:0 auto; border:1px solid #000000;text-align:center">
  <div style="width:500px; border:1px solid #000000;">test</div>
</div>

안먹히는 이유는!! 아주 간단합니다.

부모 div에 margin:0 auto;를 아무리 줘도 소용이 없습니다.
이유는 부모 div에 width값이 없기 때문이죠.
자식 div에 margin:0 auto;를 줘보세요.

수정된 코드는 아래와 같습니다.

<div style="height:200px; border:1px solid #000000;text-align:center">
  <div style="width:500px; margin:0 auto; border:1px solid #000000;">test</div>
</div>

'Tip' 카테고리의 다른 글

크로스도메인 쿠키문제  (0) 2011.01.21
MySql insert select  (0) 2010.11.06
말풍선 그럴싸한거  (0) 2010.09.26
JSP 달력 만들기  (0) 2010.09.10
CSS 말줄임표(...) div 와 table 에 적용하기  (0) 2010.09.01
Posted by 기계식키보드
:

말풍선 그럴싸한거

Tip 2010. 9. 26. 15:40 |
크롬 영어사전 확장 기능에서 띄어지는 노란 말풍선인데 그럴싸해서 기록해 놓는다.
우상단의 X이미지는 못가져왔다. 크롬 설치 경로의 어딘가에 위치하고 있을 것 같다.

<!-- Rectangle -->
<div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 191); border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(225, 198, 66); border-right-color: rgb(225, 198, 66); border-bottom-color: rgb(225, 198, 66); border-left-color: rgb(225, 198, 66); color: rgb(0, 0, 0); opacity: 0.96; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; position: absolute; width: 250px; z-index: 99997; border-top-left-radius: 5px 5px; border-top-right-radius: 5px 5px; border-bottom-right-radius: 5px 5px; border-bottom-left-radius: 5px 5px; top: 483px; left: 198.5px; background-position: initial initial; background-repeat: initial initial; " class="gd-bubble">
<div style="background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 191); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; text-align: left; float: right; margin-top: -3px; margin-right: -3px; margin-bottom: 7px; margin-left: 7px; width: 8px; height: 8px; background-image: url(chrome-extension://bmggpkflfmibiknebjkmjfnomnipcnhi/close-x.png); cursor: pointer; background-position: initial initial; background-repeat: no-repeat no-repeat; "></div>
<div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 191); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; width: auto; background-position: initial initial; background-repeat: initial initial; ">
No definition found.
</div>
<div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 191); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; color: rgb(102, 102, 102); float: left; font-size: 11px; margin-right: 8px; margin-top: 4px; overflow-x: hidden; overflow-y: hidden; text-align: left; white-space: nowrap; width: 200px; display: none; background-position: initial initial; background-repeat: initial initial; ">
<a style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 191); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; width: auto; display: inline; text-decoration: underline; font-size: 11px; color: rgb(0, 102, 0); " target="_blank"></a>
</div>
<div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 191); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; width: auto; font-size: 11px; margin-top: 4px; float: right; display: block; background-position: initial initial; background-repeat: initial initial; ">
<a style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 191); border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; width: auto; display: inline; text-decoration: underline; font-size: 11px; color: rgb(0, 0, 204); " target="_blank" href="http://www.google.com/search?q=firstDayOfMonth">http://www.url.com</a>
</div>
</div>
<!--// Rectangle -->
<!-- Arrow -->
<div style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; position: absolute; width: 0px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; top: 533px; left: 320.5px; background-position: initial initial; background-repeat: initial initial; ">
<div style="border-bottom-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; position: absolute; width: 0px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-left-width: 9px; border-left-style: solid; border-left-color: transparent; border-right-width: 9px; border-right-style: solid; border-right-color: transparent; left: 3px; z-index: 99999; border-top-width: 9px; border-top-style: solid; border-top-color: rgb(255, 255, 191); background-position: initial initial; background-repeat: initial initial; ">
</div>
<div style="border-bottom-width: 0px; border-style: initial; border-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; height: auto; line-height: normal; text-align: left; position: absolute; width: 0px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-left-width: 12px; border-left-style: solid; border-left-color: transparent; border-right-width: 12px; border-right-style: solid; border-right-color: transparent; z-index: 99998; border-top-width: 12px; border-top-style: solid; border-top-color: rgb(225, 198, 66); background-position: initial initial; background-repeat: initial initial; ">
</div>
</div>
<!--// Arrow -->
No definition found.

'Tip' 카테고리의 다른 글

크로스도메인 쿠키문제  (0) 2011.01.21
MySql insert select  (0) 2010.11.06
div가운데 정렬  (0) 2010.10.09
JSP 달력 만들기  (0) 2010.09.10
CSS 말줄임표(...) div 와 table 에 적용하기  (0) 2010.09.01
Posted by 기계식키보드
:

JSP 달력 만들기

Tip 2010. 9. 10. 22:10 |
맘에 쏙드는 그런 코드가 없어 직접 만들었다. 잼있긴 하지만 시간 아깝다ㅠㅠ

contentArea와 li의 width를 잘 조절해야 한 행에 한 주가 표시된다.
서블릿에서 firstDayOfMonth, lastDayOfMonth 두 값만 세팅해 주면 된다.

ex)
Calendar calendar = Calendar.getInstance ();
calendar.setTime ( new Date() );
int firstDayOfMonth = calendar.get(Calendar.DAY_OF_WEEK)-1;
int
lastDayOfMonth
lastDayOfMonth = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);

<style>
.contentArea {
width:890px;
padding:10px 30px 0 20px;
margin:0 4px;
}

.calendar {
list-style: none;
padding: 0;
margin: 0;
}

.calendar li {
display: inline;
list-style: none;
float: left;
width: 120px;
margin: 0 4px 2px 0;
color: #3e3e3e;
font: 12px Arial, Helvetica, sans-serif;
text-align: left;
border: 1px solid #d8d8d8;
}
</style>

<div class="contentArea">
<ul class="calendar">
<li>일</li><li>월</li><li>화</li><li>수</li><li>목</li><li>금</li><li>토</li>
<c:forEach var="data" begin="1" end="${
firstDayOfMonth
firstDayOfMonth}" step="1" varStatus="status" >
<li>-</li>
</c:forEach>
<c:forEach var="data" begin="1" end="${
lastDayOfMonth
lastDayOfMonth}" step="1" varStatus="status" >
<li style="height: 120px;">${status.count}</li>
</c:forEach> 
</ul>
</div>

'Tip' 카테고리의 다른 글

크로스도메인 쿠키문제  (0) 2011.01.21
MySql insert select  (0) 2010.11.06
div가운데 정렬  (0) 2010.10.09
말풍선 그럴싸한거  (0) 2010.09.26
CSS 말줄임표(...) div 와 table 에 적용하기  (0) 2010.09.01
Posted by 기계식키보드
:
http://rabbitchris.tistory.com/431

*. DIV 나 SPAN
 → DIV 와 SPAN 의 style 속성에 text-overflow:ellipsis; overflow:hidden 두가지를 병행하여 사용.
 → 그리고 DIV 와 SPAN 태그 안에 <nobr> 태그를 사용.

    해석을 하면 말 그대로, 텍스트가 넘치는 상황에서 ellipsis 생략 처리, 넘친 부분은 hidden 안보임 처리.
    nobr 은 처음 보나요..? <br> 태그는 많이 봤죠..? <br> 이 행을 바꾸라는 것이라면 <nobr> 은 행을 바꾸지 말라는 것.
    파워포인트에서 '도형 안에 글자넣기' 옵션이 켜지면 폭을 넘어서는 글내용이 들어갈때 자동으로 개행되져..?
    이걸 하지 못하도록 한 것. 스타일 속성에서 overflow 처리를 하여도 <nobr> 태그가 없으면 말줄임표는 꽝.

    text-overflow:clip 이라든가, overflow:visible 이라고 하면 안됩니다.
    뭐, 사용하면 오류가 난다는 것이 아니라 말줄임표가 안 붙는다는 것.
    그리고, 이렇게 해도 div 의 width 보다 작은 내용은 말줄임표가 붙지 않습니다.
    아래 예제에서는 <br> 태그를 중간에 사용했는데 <br> 을 전후로 각자 말줄임표가 사용됩니다.
<div style="width:200; text-overflow:ellipsis; overflow:hidden">
  <nobr>폭이 기다란 샘플을 사용해 주세요. <br>폭이 기다란 샘플을 사용해 주세요.</nobr>
</div>




*. TABLE
 → table 에는 table-layout:fixed 사용
 → td 에는 text-overflow:ellipsis; overflow:hidden 사용

     overflow 에 관한 설명은 위에서 했고, table 레이아웃을 fixed 고정 처리.
     만약 이렇게 했는데도 밀려난다면 td 태그 안에 <nobr> 사용
    그리고, 이렇게 해도 td 의 width 보다 작은 내용은 말줄임표가 붙지 않습니다.
    
<table style="table-layout:fixed">
<tr>
  <td width="100" style="text-overflow:ellipsis; overflow:hidden"><nobr>1. 폭이 기다란 샘플을 사용<nobr></td>
  <td width="100" style="text-overflow:ellipsis; overflow:hidden"><nobr>2. 폭이 기다란 샘플을 사용<nobr></td>
  <td width="100" style="text-overflow:ellipsis; overflow:hidden"><nobr>3. 폭이 기다란 샘플을 사용<nobr></td>
</tr>
</table>




*. TABLE 의 TD 안에서 DIV 나 SPAN
   뭐, 기본적으로 DIV 나 SPAN 에서의 말줄임표 사용방법과 동일합니다.



*. 그리고, 추가로 말줄임표를 사용했다면 반드시 title 속성을 사용하여 말풍선을 넣어 주세요.
    속성으로 들어가다 보니 내용에 인용부호가 있으면 틀이 깨어지므로 내용에서 인용부호를 빼 주어야 합니다.
    아래 예제는 JSP 를 들어 설명하였습니다. 다른 언어는 알아서 구현하세요..
<div style="width:200; text-overflow:ellipsis; overflow:hidden" title="<%= string.replaceAll("\"","") %>">
  <nobr>폭이 기다란 샘플을 사용해 주세요. <br>폭이 기다란 샘플을 사용해 주세요.</nobr>
</div>

'Tip' 카테고리의 다른 글

크로스도메인 쿠키문제  (0) 2011.01.21
MySql insert select  (0) 2010.11.06
div가운데 정렬  (0) 2010.10.09
말풍선 그럴싸한거  (0) 2010.09.26
JSP 달력 만들기  (0) 2010.09.10
Posted by 기계식키보드
: