1.置中- margin: auto;
2.漸層色塊
http://www.cssmatic.com/gradient-generator#'\-moz\-linear\-gradient\%28left\%2C\%20rgba\%28248\%2C80\%2C50\%2C1\%29\%200\%25\%2C\%20rgba\%28241\%2C111\%2C92\%2C1\%29\%2050\%25\%2C\%20rgba\%28246\%2C41\%2C12\%2C1\%29\%2051\%25\%2C\%20rgba\%28240\%2C47\%2C23\%2C1\%29\%2071\%25\%2C\%20rgba\%28231\%2C56\%2C39\%2C1\%29\%20100\%25\%29\%3B'
3.id的命名 不可以數字為開頭
4.css的style內部屬性設定時 須注意 先後次序
5.設定class內容的中心layout
margin: auto;
6.將物件放在垂直中心
style="line-height:80px;"
7.物件編排放在右側
float:right;width:40px
8.兩個物件排在同一列
<div style="display:inline-block"> A</div>
<div style="display:inline-block"> B</div>
2016年8月9日 星期二
2016年8月8日 星期一
CSS Menu 下拉式選單(drop down)
1.下拉式選單設定
<!DOCTYPE html>
<html>
<head>
<style>
.dropbtn {
background-color: #4CAF50;
color: white;
padding: 16px;
font-size: 16px;
border: none;
cursor: pointer;
}
.dropbtn:hover, .dropbtn:focus {
background-color: #3e8e41;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
overflow: auto;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropdown-content a {
color: black;
text-decoration: none;
padding: 12px 16px;
display: block;
// 造成 下拉式選單 的影響
}
.dropdown a:hover {background-color: #f1f1f1}
.show {display:block;}
</style>
</head>
<body>
<h2>Clickable Dropdown</h2>
<p>Click on the button to open the dropdown menu.</p>
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn">Dropdown</button>
<div id="myDropdown" class="dropdown-content">
<a href="#home">Home</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</div>
</div>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</body>
</html>
2. 直線動畫
http://bradsknutson.com/blog/css-sliding-underline/
<!DOCTYPE html>
<html>
<head>
<style>
.dropbtn {
background-color: #4CAF50;
color: white;
padding: 16px;
font-size: 16px;
border: none;
cursor: pointer;
}
.dropbtn:hover, .dropbtn:focus {
background-color: #3e8e41;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
overflow: auto;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropdown-content a {
color: black;
text-decoration: none;
padding: 12px 16px;
display: block;
// 造成 下拉式選單 的影響
}
.dropdown a:hover {background-color: #f1f1f1}
.show {display:block;}
</style>
</head>
<body>
<h2>Clickable Dropdown</h2>
<p>Click on the button to open the dropdown menu.</p>
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn">Dropdown</button>
<div id="myDropdown" class="dropdown-content">
<a href="#home">Home</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</div>
</div>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</body>
</html>
2. 直線動畫
http://bradsknutson.com/blog/css-sliding-underline/
2016年8月5日 星期五
RWD網站設計
經典 標準 免費-
https://dcrazed.com/free-responsive-html5-css3-templates/
css menu
http://www.newmediacampaigns.com/blog/nicer-navigation-with-css-transitions-part-2
http://codepen.io/shshaw/pen/gsFch
欄位動態調整
http://demos.jquerymobile.com/1.4.0/rwd/
https://dcrazed.com/free-responsive-html5-css3-templates/
css menu
http://www.newmediacampaigns.com/blog/nicer-navigation-with-css-transitions-part-2
http://codepen.io/shshaw/pen/gsFch
欄位動態調整
http://demos.jquerymobile.com/1.4.0/rwd/
2016年8月1日 星期一
網頁 重要設計元素 或 效果
1.image slider
2.cssmenu
3.banner
線上google 字體:
https://www.google.com/fonts/earlyaccess
字體下載
https://fonts.google.com/earlyaccess
SliderShow Example
http://www.menucool.com/slider/javascript-image-slider-demo2
http://www.menucool.com/slider/thumbnail-slider-demo-3
2.cssmenu
3.banner
線上google 字體:
https://www.google.com/fonts/earlyaccess
字體下載
https://fonts.google.com/earlyaccess
SliderShow Example
http://www.menucool.com/slider/javascript-image-slider-demo2
http://www.menucool.com/slider/thumbnail-slider-demo-3
2016年7月19日 星期二
振奮音樂
https://www.youtube.com/watch?v=5ohXZCdNgtk
https://www.youtube.com/watch?v=WU7SGn0MeP0
https://www.youtube.com/watch?v=Jp9C06er9-c
https://www.youtube.com/watch?v=_ptzKdBlv0I
https://www.youtube.com/watch?v=MbNxu5_b1kQ
Two Steps from Hell:
https://www.youtube.com/watch?v=0RVIgZRRlmk&spfreload=5
https://www.youtube.com/watch?v=WU7SGn0MeP0
https://www.youtube.com/watch?v=Jp9C06er9-c
https://www.youtube.com/watch?v=_ptzKdBlv0I
https://www.youtube.com/watch?v=MbNxu5_b1kQ
Two Steps from Hell:
https://www.youtube.com/watch?v=0RVIgZRRlmk&spfreload=5
Wechat與微博 研究紀錄
微博
http://open.weibo.com/wiki/%E6%96%B0%E6%89%8B%E6%8C%87%E5%8D%97
https://github.com/sinaweibosdk/weibo_android_sdk
http://open.weibo.com/wiki/Android_SDK%E8%AF%B4%E6%98%8E%E6%96%87%E6%A1%A3
wechat
http://dev.wechat.com/wechatapi/documentation#android-
(byte[]) headImgData
WXImageObject
http://stackoverflow.com/questions/17165972/android-how-to-open-a-specific-folder-via-intent-and-show-its-content-in-a-file
http://open.weibo.com/wiki/%E6%96%B0%E6%89%8B%E6%8C%87%E5%8D%97
https://github.com/sinaweibosdk/weibo_android_sdk
http://open.weibo.com/wiki/Android_SDK%E8%AF%B4%E6%98%8E%E6%96%87%E6%A1%A3
http://dev.wechat.com/wechatapi/documentation#android-
(byte[]) headImgData
WXImageObject
http://stackoverflow.com/questions/17165972/android-how-to-open-a-specific-folder-via-intent-and-show-its-content-in-a-file
2016年5月5日 星期四
健身方法
http://mf.techbang.com/posts/623-sportsman-gym-wearing-a-t-shirt-more-attractive-6-training?page=3
訂閱:
文章 (Atom)