如果直接用 bitbucket 提供的
https://[username]@bitbucket.org/XXXX/XXXX.git
會顯示 Could not read Password for XXXX 的訊息
要將 url 改成
https://[username]:[password]@bitbucket.org/XXXX/XXXX.git
才行
如果是已經 clone 出來的 project, 則修改 .git/config 裡的 url 內容即可
創造屬於自己的天空
如果直接用 bitbucket 提供的
https://[username]@bitbucket.org/XXXX/XXXX.git
會顯示 Could not read Password for XXXX 的訊息
要將 url 改成
https://[username]:[password]@bitbucket.org/XXXX/XXXX.git
才行
如果是已經 clone 出來的 project, 則修改 .git/config 裡的 url 內容即可
git config --global core.editor vim改使用者名稱
git config --global user.name "Your Name"改使用者 e-mail 位址
git config --global user.email you@example.com設定使用的 diff tool
git config --global merge.tool vimdiff查看目前設定
git config --lis
<div class="cb"> <div class="bt"> <!-- 上邊框線乃右圓角 --> <div></div> <!-- 左圓角 --> </div> <div class="i1"> <!-- 左邊框線 --> <div class="i2"> <!-- 右邊框線 --> <div class="i3"> <!-- 底色 --> <h1>Header</h1> <p>TEST</p> </div> </div> </div> <div class="bb"> <!-- 下方框線及右圓角 --> <div></div> <!-- 左圓角 --> </div> </div>4. css 的內容:
/* Normal styling */
.cb {margin:0.5em 0;}
/* Top corners and border */
.bt {
height:17px;
margin:0 0 0 18px; /* 設定左邊界,將空間留給顯示左上邊角的 div */
background:url(box.png) no-repeat 100% 0; /* 將圖靠右上對齊,顯示上方框線及右上方的邊角 */
}
.bt div {
position:relative;
left:-18px; /* 原本 bt 設定了左邊界,這裡要設負值讓 div 移回原本的位置 */
width:18px; /* 設定邊角的寬度,避免蓋掉右上邊角 */
height:17px;
background:url(box.png) no-repeat 0 0; /* 將圖靠左上對齊,顯示左上方的邊角 */
font-size:0;
line-height:0;
}
/* Bottom corners and border */
.bb {
height:14px;
margin:0 0 0 12px; /* 設定左邊界,將空間留給顯示左下邊角的 div */
background:url(box.png) no-repeat 100% 100%; /* 將圖靠右下對齊,顯示右下方的邊角 */
}
.bb div {
position:relative;
left:-12px; /* 原本 bb 設定了左邊界,這裡要設負值讓 div 移回原本的位置 */
width:12px; /* 設定邊角的寬度,避免蓋掉右下邊角 */
height:14px;
background:url(box.png) no-repeat 0 100%; /* 將圖靠左下對齊,顯示左下方的邊角 */
font-size:0;
line-height:0;
}
/* Left border */
.i1 {
padding:0 0 0 12px; /* 設定左邊界,避免內容和邊框重疊 */
background:url(borders.png) repeat-y 0 0;
}
/* Right border */
.i2 {
padding:0 12px 0 0; /* 設定右邊界,避免內容和邊框重疊 */
background:url(borders.png) repeat-y 100% 0;
}
/* Wrapper for the content. Use it to set the background colour and insert some padding between the borders and the content. */
.i3 {
display:block;
margin:0;
padding:1px 10px;
background:#fff;
}
/* Make the content wrapper auto clearing so it will contain floats (see http://positioniseverything.net/easyclearing.html). */
.i3:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
.i3 {display:inline-block;}
.i3 {display:block;}
<body> <div id="wrapper"> </div> </body>1. 使用自動邊界置中
#wrapper {
width: 720px; /* 可用 % 或其它單位 */
margin: 0 auto;
}
2. 使用負邊界來做置中
#wrapper {
width: 720px;
position: relative;
left: 50%; /* 將區塊的左邊對齊中央 */
margin-left: -360px; /* 再將左邊界設為寬度一半的負值 */
}
<body> <a href="#" class="btnLink">Button Link<span>This is a button like link</span></a> </body>CSS 的內容:
<style>
a.btnLink {
display: block;
background-color: #94B8E9;
border: 1px solid black;
text-decoration: none;
text-align: center;
width: 300px;
position: relative; /* 設定錨點為相對配置, span 就可依相對於錨點的位置來做絕對配置 */
}
a.btnLink:hover {
background-color: #369;
color: #fff;
}
a.btnLink span {
display: none; /* 先將 span 設為隱藏,平常裡面的內容就不會顯示出來 */
}
/* 當滑鼠移到錨點上時,改變 span 的 style 讓它顯示出來 */
a.btnLink:hover span {
display: block;
position: absolute; /* 設為絕對位置 (相對於錨點) */
top: 1em; /* 設定 span 的位置,比錨點低 1em */
left: 2em; /* 設定 span 的位置,比錨點往右 2em */
padding: 0.2em 0.6em;
border: 1px solid #996633;
background-color: #FFFF66;
color: #000;
}
</style>
<style>
a {
display: block; /* 設為區塊模式 */
background-color: #94B8E9; /* 定義按鈕顏色 */
border: 1px solid black; /* 按鈕邊框 */
text-decoration: none; /* 不產生底線 */
text-align: center; /* 將文字置中 */
width: 300px; /* 設定寬度 */
}
/* 滑鼠指到連結時改變按鈕顏色 */
a:hover {
background-color: #369;
color: #fff;
}
</style>
<body>
<a href="#">Button Link</a>
</body>