Loading...

CSS3 box-shadow

Temperature: 0 °C

ChungChung
author_tools

便利貼~俗稱小黃(對來說),依據wiki的說法~是3M公司的工程師史賓塞·席佛經過5年後出現成果。

那麼若把他實用在網頁上使用?

CSS3 box-shadow
以下使用CSS3 box shadow 的效果設計一張便利貼~

/*開始設計便利貼實際尺寸及顏色*/
#box
{
position: relative;
width: 400px;
height: 300px;
background: #fff5b0;
border: 1px solid rgba(236, 221, 136, 0.9);
-moz-border-radius: 4px;
border-radius: 4px;
padding: 2em 1.5em;
color: rgba(36,63,84, 1);
text-shadow: 0 1px 0 #efefef;
line-height: 1.5;
margin: 60px auto;
}

/*這裡開始設計便利貼貼上的陰影效果*/
#box:before, #box:after
{
z-index: -1;
position: absolute;
content: "";
bottom: 15px;
left: 10px;
width: 50%;
top: 80%;
max-width:300px;
background: rgba(0, 0, 0, .6);
-webkit-box-shadow: 0 15px 10px rgba(0,0,0, .6);
-moz-box-shadow: 0 15px 10px rgba(0, 0, 0, .6);
box-shadow: 0 15px 10px rgba(0, 0, 0, .6);
-webkit-transform: rotate(-3deg);
-moz-transform: rotate(-3deg);
-o-transform: rotate(-3deg);
-ms-transform: rotate(-3deg);
transform: rotate(-3deg);
}

#box:after
{
-webkit-transform: rotate(3deg);
-moz-transform: rotate(3deg);
-o-transform: rotate(3deg);
-ms-transform: rotate(3deg);
transform: rotate(3deg);
right: 10px;
left: auto;
}

以上紀錄
 

台北市內湖區江南街71巷75弄 Go

https://innstory.com/story-CSS3_boxshadow-1286
寫程式筆記

Prev
 進階版章節功能

Next
5U日常我突然覺得那蛋捲盒子有點可憐 

Nearby Attractions

台北市內湖區江南街71巷75弄-Nearby Attractions

  • 草山水道系統 Go
  • 臺灣電力株式會社社長宿舍 Go
  • 台灣總督府交通局鐵道部(廳舍... Go
  • 大稻埕辜宅 Go
  • 閻錫山故居 Go
  • 勸業銀行舊廈 Go

About the Author

Chung

我是chung
網路工作者
主業是網站系統開發建置
副業是做夢,寫故事
作品請參考/teme.biz
做夢請參考/innstory.com
聯絡/chung.teme@gmail.com

#有人用筆寫日記,有人用歲月寫日記,有人用照片寫日記,而我,用innstory寫日記。

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

JavaScript 檢查 Radio Button

JavaScript 檢查 ...

要用 JavaScript 來檢查同一組的 radio button 是否已選,可用以下方法: if...

無障礙網頁accesskey

無障礙網頁accesskey...

accesskey 無障礙網頁導盲磚。 是為了要方便有需求的人,可利用鍵盤即可快速瀏覽網頁切換網頁位...

新舊交替,使用phpmyadm出現1064 error in CREATE TABLE … TYPEMYISAM錯誤

新舊交替,使用phpmyad...

sql55 系統移機的過程中,最重要的環節....我想...莫過於是系統的環境了....。 這次在協...

Recommended reading

Other stories happened at this address

第一次被5U的大便嗆到咳嗽,天啊我到底餵你吃了些什麼@@

第一次被5U的大便嗆到咳嗽,...

第一次被U的大便嗆到咳嗽,天啊我到底餵你吃了些什麼@@

有沒有試過,被自己小孩叫醒的經驗?

有沒有試過,被自己小孩叫醒的...

s 自從有了U,想要睡到自然醒? 醒醒吧,這種事絕對不可能會發生的~ 為了叫我起床,首先,他把他的貼...

第一次吃副食品,你這表情也太有戲了吧!! 是有難吃到這樣嗎?

第一次吃副食品,你這表情也太...

第一次吃副食品,你這表情也太有戲了吧!! 是有難吃到這樣嗎?

字母疊疊樂

字母疊疊樂

經過了好幾次的失敗,最後終於把數字、字母疊成高樓。 說真的,我非常佩服Mandy的耐心,在U失敗鬧脾...

星期五披薩夜

星期五披薩夜

星期五囉,按照慣例今天我是不用下廚的... 但台北現在仍下著雨,所以今晚就叫達美樂囉... 達美樂打...

我需要多一點正面能量

我需要多一點正面能量

最近有太多的負面情緒~ 所以收集了一些正面名言來激勵一下自己。 每次進入系統隨機挑一個名言顯示,顯示...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format