參考文章
http://www.permadi.com/tutorial/cssHighlightTableRow/index.html
首先:設定你的style
包爾伯 發表在 痞客邦 留言(1) 人氣(2,543)
body{
margin:0;
margin-left:auto;
margin-right:auto;
padding:0;
font-size:11px;
padding-left:2px;
text-align:center; <–這可以設定網頁置中
font:11px arial;
background:#eeeeee;
border:0;
width:1200px;
color:#FFFFFF;
background-image:url(../images/pattern_bg.gif);
background-repeat:repeat;
scrollbar-base-color: #505050; <–這可以設定scrollbar
scrollbar-arrow-color: #666666; <–這可以設定scrollbar
}
input
{
color: #999999;
background: #505050;
border: 1px solid #999999;
}
body img
{
border:0px;
cursor:pointer;
}
a
{
font-size:11px;
color:#B9CF38;
text-decoration:blink;
}
a:hover{
font-size:11px;
color:#B9CF38;
text-decoration:underline;
}
select
{
color:#999999;
background-color:#505050;
border: 1px solid #999999;
}
包爾伯 發表在 痞客邦 留言(0) 人氣(601)
Example #1-Create a div with both vertical and horizontal scroll bars:
<div style=”width:300px;height:100px;overflow:auto;”>some text</div>
Example #2-Create a div with either vertical or horizontal scroll bars but not both:
<div style=”width:300px;height:100px;overflow-x: hidden;overflow-y:scroll;overflow:-moz-scrollbars-vertical !important;”>some text</div>
Example #3-you want to have div with only horizontal scroll bars, you can write like this
<div style=”overflow-x:scroll ;overflow-y:hidden;overflow:-moz-scrollbars-horizontal !important;”>some text</div>
Example #4-you can define your css to hide anything that would be beyond the dimensions of div by writing like this
<div style=”width:400px;height:100px;overflow:hidden;”>some text</div>
包爾伯 發表在 痞客邦 留言(0) 人氣(13,198)
<link type=”text/css” rel=”Stylesheet” href=”Style.css” mce_href=”Style.css” />
<style type=”text/css”>
.link1 { FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #3344ff; TEXT-DECORATION: none }
.link1:hover { FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #ff0000; TEXT-DECORATION: none }
.title1 { FONT-WEIGHT: bold; FONT-SIZE: 18px; COLOR: #333333 }
.title2 { FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #3333ff }
.title3 { FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #333333 }
</style>
包爾伯 發表在 痞客邦 留言(0) 人氣(524)