Sammie's Blog

CSS | 可能是圖片不爆版的小秘密

不小心變成一年分享一主題(^_^;)

前陣子因為專案切版常常會有需要呈現圖片的區塊,就回去小翻了上課時老師教的方法,到底怎麼做才可以減少爆版機會呢?

覺得這個方法真心好用,我自己也有筆記下來,推薦給大家參考~

read more

Regex | Regular Expression 不用就忘記

剛開始收到主題的時候想說regex以前老師有講過一點點,但是查了資料才發現根本就忘得差不多了XD

在這段期間也幾乎都是google一下大家常用的規則,然後就複製貼上再實際測試哪個最符合想要的,沒在管內容長怎樣

畢竟長/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$/的字串在程式寫正順的時候,沒有人有那個美國時間慢慢查慢慢理解啦!!

但是就算有時間檢查這一大堆字串的時候,好像也會有種有看沒有懂的感覺,或是要每看完一次隔幾天就又忘了

但是其實,regex是學一次可以用一輩子的神奇寶貝欸XD 所以,話不多說,開始吧!!

read more

Markdown testing

This is heading 1.

This is heading 2.

This is heading 3.

This is heading 4.

This is heading 5.
This is heading 6.

This is general word showing.

This is bold. This is delete. This is italic.

Quote: margin -$ px depending on number of quotes

This is a simple word or sentence.

These are mutiple sentences, paragraphs, or coding.
For example, it can including multiple lines in a block.
function javascript(argument1, argument2) {
    console.log('Try javascript in markdown.')
    return argument1 + argument2
}
.css {
    font-size: 2rem;
    background-color: lightblue;
}
<div class="container">
    <span>This is html.</span>
</div>
  No. Title Content
Text-Align right center default: left
- 01 Title One Contnet One
- 02 Title Two Content Two
- 03 Title Three Content Three
- 100 Title Hundred Content Hundred
- 1000 Title Thousand Content Thousand
read more

Hello World

This is my very first blog post. I haven’t written anything yet but I’m sure I have some great stories to tell.

read more