CSS 커서의 종류

텍스트에 마우스를 올려 보세요.<p style="cursor:텍스트">텍스트</p> 이런 식입니다. alias all-scroll auto cell context-menu col-resize copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize ns-resize nw-resize nwse-resize no-drop none not-allowed pointer progress row-resize s-resize se-resize sw-resize text url w-resize wait zoom-in zoom-out

overflow, white-space, text-overflow] 자동…

이 소스는... 텍스트의 길이가 길어서 자동으로 다음줄로 넘어가지 않고, 넘어가는 영역(overflow)은 안보이게 처리한 후, ... 을 자동으루 붙여주는 역할을 해준다.(테스트 해 본 바로는 <Table> 관련 테그(TR,TD) 안에 들어가서는 적용되지 않았음) [STYLE_01] <table>   <tr>     <td bgcolor="#FF9999">    overflow:hidden;width:300px;white-space:nowrap;text-overflow:ellipsis;">동해물과 백두산이 마르고 닳도록, 하느님이 보우하사 우리나라만세. 무궁화 삼천리 화려강산. 대한사람 대한으로 길이 보존하세     </td>   </tr> … 계속 읽기 overflow, white-space, text-overflow] 자동…

Mybatis 쿼리를 바인딩된 String으로 가져오는 방법

마이바티스에서 수행되어 만들어진 쿼리를 추출하고 싶을 때 사용합니다. @Autowired SqlSession sqlSession 을 사용합니다. 1. Mapper.xml 에 쿼리가 아래와 같다고 가정하고 <select id="selectTest"> select * from test where idx1 = #{param.idx1} and idx2 = #{param.idx2} and userid = #{param.session.userid} </select> 2. 파라미터를 HashMap<String, Object> 형식일 경우 (기본적으로 모두 String형으로 할랍니다 "") //인터페이스 샘플입니다. 아래와 같다고 가정하고 … 계속 읽기 Mybatis 쿼리를 바인딩된 String으로 가져오는 방법

resizeend 이벤트

jquery 이벤트에는 resizeEnd 라는 이벤트가 없다. 그래서 있다! 아래의 소스코드를 응용하세요~~~ㅇ $(window).bind({ resize : function(){        window.clearTimeout(window.resizeTimer);        window.resizeTimer = window.setTimeout(function() {            $(window).trigger('resizeend');        }, 100); } , resizeend : function(){  console.log("들어옴"); }});

스크롤 강제로 숨김

// 가로 스크롤 숨김 <body style="overflow-x:hidden"> // 세로 스크롤 숨김  <body style="overflow-y:hidden">  auto:지정된사이즈이상으로 내용이 넘치면 세로스크롤 생김 visible:사이즈에 관계없이 내용 모두를 보여줌(스크롤박스만들지 않은것과 같음) hidden: 지정된 사이즈이상의 내용은 잘라버림(스크롤바없음)  scroll:무조건 스크롤바를 보여줌(가로,세로 스크롤모두 생김)