1、網頁設計,布局顏色,CSS樣式
弄成藍色的不就合旁邊對應了。。
2、網頁設計 背景屬性 div css
麻煩你看一下我的建議:你有沒有發現你的背景中的三種顏色都不是「漸變色」,而只是三種普通的顏色罷了,所以啊,你可以不用背景圖片,直接用背景顏色即可,不知道你有沒有看懂我的意思,還是看我的程序效果吧,不知道對你是否有幫助??
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="
http://www.w3.org/1999/xhtml">
<head>
<style
type="text/css">
.main{width:800px;margin:0px
auto;}
.top{width:100%;height:200px;background:#232323;}
.center{width:100%;height:500px;background:#E6E6E6;}
.bottom{width:100%;height:200px;background:#C0C0C0;}
</style>
</head>
<body>
<div
class="main">
<div
class="top"></div>
<div
class="center"></div>
<div
class="bottom"></div>
</div>
</body>
</html>
3、網頁設計中的邊框代碼
1、打開html開發工具,新建一個html代碼頁面。html中創建一個div標簽,給這個標簽添加文字內和一個class為了後面方便控制容div的樣式:
2、接下來在style標簽設置div的樣式,在solid類中將邊框樣式設為實線邊框,顏色這里用默認的黑色:
3、保存html代碼使用瀏覽器打開,即可看到瀏覽器頁面上顯示一個實線邊框。以上就是網頁設計中設置邊框的詳細步驟:
4、關於網頁設計中的css
顯示和隱藏是最簡單的方法,你可以將右側的對應的div的高度從0變到你要的高度,和顯示隱藏效果一樣
5、html css 網頁設計 a:link ,a:visited,a:hover, 怎麼 添加行內樣式
a:link,a:visited,a:hover,貌似不可以用行內樣式表示哦。
可以用內部樣式:
<style>也可以用css文件中的外部樣式:
<link rel="stylesheet" type="text/css" href="test.css"></link>但是貌似不可以用行內樣式的。
如果一定要用,可以這樣的方式來:
<a href="javascript:void(0);" onmouseover="this.style.color='yellow';" onmouseout="this.style.color='blue';" onclick="this.style.color='red';">鏈接</a>其中,onmouseout對應的a:link,onclick對應的a:visited,onmouseover對應的a:hover
6、網頁設計與製作中三個盒子模型的css樣式怎麼弄
CSS盒子模型:W3C組織建議把所有的網頁上的對象都放在一個盒子中(在定義盒子寬高的時候,要考慮到內填充,邊框,邊界的存在)
一個盒子的構成:
盒子中的內容:content
盒子的邊框:border
盒子邊框與內容之間的距離:稱為填充---padding內邊距(內補丁)
如果有多個盒子存在,盒子與盒子之間的距離:稱為邊界---margin,外邊距(外補丁)
整個盒子模型在網頁中所佔的寬度:左邊界+左邊框+左填充+內容+右填充+右邊框+右邊界
CSS盒子模型的屬性:
內容屬性:寬=width 高=height
內填充屬性(內容與邊框之間的距離):padding
外邊距屬性:margin(使用該屬性的時候注意瀏覽器的兼容性)
內填充與邊界的規則:
如果有四個參數:表示上右下左,也可以單單指定某個方向
如果只有一個參數:表示上右下左
如果有兩個參數: 第一個參數表示上下 第二個參數表示左右
如果三個參數:表示上 左右 下
邊框屬性:border
復制代碼
代碼如下:
<style type="text/css">
#bigBox{
width:300px;
height:300px;
background:#F30;
padding:20px 0px 0px 20px;
margin:20px;
}
#smallBox{
width:150px;
height:150px;
background:#6F9;
padding-top:20px;
}
</style>
</head>
<body>
<div id="bigBox">
<div id="smallBox">
小盒子
</div>
</div>
7、html網頁設計:一個簡單的登錄界面代碼!
是這樣的效果嗎?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>3</title>
<script>
function r()
{
var username=document.getElementById("username");
var pass=document.getElementById("password");
if(username.value=="")
{
alert("請輸入用戶名");
username.focus();
return;
}
if(pass.value=="")
{
alert("請輸入密碼");
return;
}
return true;
}
</script>
</head>
<body>
<form>
<table width="350" bgcolor="#ccffcc" style="border-color" border="1">
<tr align=center>
<td>用戶名</td><td><input type="text" name="username" id="username"></td>
</tr>
<tr align=center><td>密 碼</td><td><input type="password" name="password" id="password"></td></tr>
<tr align=center><td>驗證碼</td><td><input type="text" name="yanzheng"></td></tr>
<tr align=center><td colspan="2"><input type="button" value="登 錄" onclick="r();"/> <input type="reset" value="重 置"/></td></tr>
</table>
</form>
</body>
</html>
8、求一個html + css的網頁布局代碼
不知道你說的高度全屏什麼意思,給你寫了段代碼,自己在調試一下
<table width=100% border="1" cellspacing="1" cellpadding="1" style="text-align:center;">
<tr>
<td style="width:100%; height:30px;">第一部分</td>
</tr>
<tr>
<td><table style="width:100%;" border="1"cellspacing="1" cellpadding="1">
<tr>
<td style="width:200px;">第二部分</td>
<td>第三部分</td>
</tr>
</table>
</td>
</tr>
</table>