웹(web)136 반응형 웹을 위한 css (rem , media, %, viewport) 1. rem과 em을 사용한다. rem은 body태그 속성값을 기준으로 설정 em은 부모 태그 속성값을 기준으로 설정. 1.5rem이면 body font-size: 10px일 경우 15px이 됨. 2.미디어쿼리를 작성 @media screen and (min-width:0px) and (max-width:500px){ } @media screen and (min-width:501px){ } 과 같이 웹브라우저의 길이에 따라서 뿌려주는 방식을 구분. external 방식으로 사용하는 방법 3. px대신 %사용 웹브라우저 가로 길이에 꽉차게 해주려면 width:100%로 사용. 4. viewport를 사용해서 모바일폰의 실제 해상도에 맞춰주는 방법. 웹브라우저가 인식하는 해상도와 폰의 해상도가 다를 경우 맞.. 2019. 8. 14. 로그인 시 쿠키를 안 돌려주는 경우 - 세션 이용 최초의 로그인 이후 해당 쿠키를 이용해서 다른 페이지에 요청을 보내는게 일반적이다. 하지만 로그인 후 쿠키를 반환 안해주는 사이트도 존재한다. 쿠키 없이 해당 웹페이지의 리소스에 요청을 보내면 인증되지 않아 거절된다. 이 때는 세션을 생성하여 로그인을 시키고 해당 세션 유지기간동안 요청을 보내는 식으로 사용하자. 2019. 8. 7. regex training site https://regexone.com/ RegexOne - Learn Regular Expressions - Lesson 1: An Introduction, and the ABCs Regular expressions are extremely useful in extracting information from text such as code, log files, spreadsheets, or even documents. And while there is a lot of theory behind formal languages, the following lessons and examples will explore the more prac regexone.com Lesson 파트를 본 후 Problem 파트를 .. 2019. 7. 7. crawl_site() with itertools code: import itertools def crawl_site(url): for page in itertools.count(1): print(page) pg_url = '{}{}'.format(url,page) html = download(pg_url) if html is None: break print(pg_url) 2019. 7. 6. 이전 1 ··· 30 31 32 33 34 다음