it/programming

it/programming

이미지없이 css로 둥근 테두리 (모서리) 구현하기

출처 ▷ http://www.html.it/articoli/nifty/index.html 서핑 중 되게 쓸만한걸 찾았네요, 그리고 바로 적용했습니다 ! CSS .rtop, .rbottom{display:block} .rtop *, .rbottom *{display: block; height: 1px; overflow: hidden} .r1{margin: 0 5px} .r2{margin: 0 3px} .r3{margin: 0 2px} .r4{margin: 0 1px; height: 2px} HTML 원작자는 둥근 모서리를 위해 태그를 활용하였다고합니다. 인라인요소이고, 보다 짧기 때문이죠.이 태그는 float요소에도 활용이 가능하며, 크기도 조절가능합니다. 예제 - http://hsol.tistory.com

it/programming

티스토리에서 Javascript로 레이어 팝업 띄우기

이왕 공지올릴때 쓴거 포스팅이라도 해놓으려고요. 이제부터 급한공지는 레이어팝업으로 띄우려하는데요. 여기서 레이어 팝업이란? 보통 팝업은 새로운 자식윈도우를 띄우는건데요 레이어 팝업은 이와 다르게 부모윈도우 자체에, 홈페이지 자체에 붙여놓는 그런 원리입니다. 코드를 간단하게 설명하면 style(css)부분과 script(java script)부분으로 나뉘는데요. css영역 css 사용 선언 [#layerPop] layerPop 이라는 클래스에 적용[width:600px;height:250px;] 팝업 레이어 크기[position:fixed;top:50px;left:200px;] 레이어 위치(fixed는 화면 스크롤에 따라 무빙시키기 위해 사용했습니다.)[border:1px] 테두리[solid #ccc;] ..

it/programming

[c++] 구조체 포인터 node 관리 - find

#include #include struct node{ int data; struct node *next; }; int node_find(struct node *head, int key); void list_print(struct node *); void main(){ struct node a, b, c; struct node *head; int find, key; head=&a; a.data = 10; b.data = 20; c.data = 30; a.next= &b; b.next = &c; c.next = NULL; list_print(head); while(key!=-1) { printf("\n>>데이터 찾기\n찾고자 하는 데이터 : "); scanf("%d",&key); find = node_fi..

it/programming

[c++] 구조체 포인터 node 관리 - insert

#include #include #include struct node { int data; struct node *next; }; struct node *node_insert(struct node *head, int cur_data,int insert_data); void list_print(struct node *); void main(){ struct node a, b, c; struct node *head; head=&a; a.data = 10; b.data = 20; c.data = 30; a.next= &b; b.next = &c; c.next = NULL; list_print(head); head = node_insert(head, 20, 5); list_print(head); } void l..

it/programming

[c++] 구조체 포인터 node 관리 - add

#include #include struct node { int data; struct node *next; }; struct node *node_add(struct node *head, int add_data); void list_print(struct node *); void main(){ struct node a, b, c; struct node *head; head=&a; a.data = 10; b.data = 20; c.data = 30; a.next= &b; b.next = &c; c.next = NULL; list_print(head); head = node_add(head, 50); list_print(head); } void list_print(struct node *head){ for(..

it/programming

[c++] 구조체 포인터 node 관리 - delete

#include #include struct node { int data; struct node *next; }; struct node *create2(); struct node *node_del(struct node *head, int del); void list_print(struct node *); void main() { struct node a, b, c; struct node *head; head=&a; a.data = 10; b.data = 20; c.data = 30; a.next= &b; b.next = &c; c.next = NULL; list_print(head); head = node_del(head,10); list_print(head); head = node_del(head,20..

it/programming

[c++] 포인터 검색

#include void cntDigit(char *str,int cnt[]); void main() { static char *str ="1-1,1-2,1-3,1-4,1-5,1-6"; int cnt[10]={0,}; int i; cntDigit(str,cnt); for(i=0;i

it/programming

[c++] 구조체 배열 실습

#include void JR(struct student st[]); struct student { int no; char name[50]; int kor,eng,mat,sum; float ave; char hak; }; void main() { struct student st[5]={{1,"김경민",89,75,70},{2,"노순희",67,56,80},{3,"민은희",90,100,89},{4,"이은하",75,86,96},{5,"황은영",90,89,79}}; for(int i=0;i=90) st[i].hak='A'; else if(st[i].ave>=80) st[i].hak='B'; else if(st[i].ave>=70) st[i].hak='C'; else if(st[i].ave>=60) st[i].ha..

반응형
훈솔
'it/programming' 카테고리의 글 목록 (10 Page)