프로그래밍언어 (17) 썸네일형 리스트형 [자바 기초] 자바 클래스 package com.myspring.week01; public class Course { private String title; private String tutor; private int days; // 기본생성자 public Course() { } // 생성자 public Course(String title, String tutor, int days) { this.title = title; this.tutor = tutor; this.days = days; } // Setter, Getter public void setTitle(String title) { this.title = title; } public void setTutor(String tutor) { this.tutor = tutor; }.. [CSS] 추가 클래스 - Multiple Class https://stackoverflow.com/questions/1065435/can-a-css-class-inherit-one-or-more-other-classes Can a CSS class inherit one or more other classes? Is it possible to make a CSS class that "inherits" from another CSS class (or more than one). For example, say we had: .something { display:inline } .else { background:red } What I'... stackoverflow.com https://velog.io/@sophia9901/CSS%EC%8A%A4%ED%83%80.. Table CSS 테이블 정렬하기 .table { width: 80%; max-width: 800px; margin: auto; table-layout: fixed; border-collapse: collapse; } td { background-color: white; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } 둥글게 깎기 thead:first-child tr:first-child th:first-child { border-radius: 10px 0 0 0; } thead:first-child tr:first-child th:last-child { border-radius: 0 10px 0 0; } tbody:last-child tr:last-c.. 내 마음대로 적는 CSS - 2 : background 관련 CSS 총집합! background-color: white; background-image: url('image.jpg'); background-position: center; background-size: contain; background-repeat: no-repeat; background-attachment: fixed; 내 마음대로 적는 CSS -1 : 의사요소, 의사클래스, box-sizing, margin, overflow *, ::after, ::before{ box-sizing: border-box; margin: 0; } 위 CSS 규칙은 '*' (모든요소), '::after', '::befre' 두 가지 의사요소(pseudo-element)에 적용합니다. 규칙 내용은 먼저 'box-sizing' 속성을 'border-box'로 설정합니다. 요소의 총 너비와 높이를 계산할 시 패딩(padding)과 테두리(border) 너비를 포함시키도록 지시합니다. 또한 'margin' 속성을 0으로 설정하여 기본 마진을 제거합니다. 1. 의사요소 (pseudo-element) 의사요소란 CSS 선택자의 일종으로서, 선택한 요소의 일부분에 가상의 요소를 생성합니다. HTML 코드 상에는 존재하지 않지만 CSS를 사용해 내부 특정 위.. 파이썬 - 날짜 코딩도장 파이썬 날짜 시간 : https://dojang.io/mod/page/view.php?id=2463 from datetime import datetime today = datetime.now() mytime = today.strftime('%Y-%m-%d-%H-%M-%S') print(mytime) 2023-03-09-15-42-06 종료 코드 0(으)로 완료된 프로세스 활용 : 파일 이름과 같은 중복되지 않는 값에 활용할 수 있습니다. from datetime import datetime today = datetime.now() mytime = today.strftime('%Y-%m-%d-%H-%M-%S') filename = f'file-{mytime}' print(filename) 파이썬 스트링 fstring : name = '홍길동' age = '30' hello = f'제 이름은 {name}이고요 나이는 {30}입니다.' print(hello) 자바로 배우는 자료구조 강의 : https://www.youtube.com/watch?v=18HU7_kyubY&list=PL52K_8WQO5oWz_LYm3xg23m5q9qJXoE4n 자료 : http://alg.pknu.ac.kr/t/2016-2017-java/342 0. 프로젝트 세팅 JDK : 자바 컴파일러를 다운로드한다. Eclipse : IDE를 설치한다. workspace를 설정한다. 자바 프로젝트 세팅 : Eclipse를 실행한다. -> File -> new-> project -> java -> project -> 프로젝트 이름과 경로를 설정하고 생성한다. -> 생성된 프로젝트의 src에 class를 생성하고 psvm을 포함해 생성한다. 1. 변수, 배열, 반복문 - 클래스 이름과 파일 이름은 일치해야 한다. 관습적.. 이전 1 2 3 다음