1、在网页中调用css样式的代码
主要分3种方法:
1.行内式,就是直接在网页中加入css样式表,在标记的后面加上style属性来设定css样式。
如:
<p style="font-size:12px; color:#000;">行内式测试</p>
注:读取速度最快,但维护最麻烦
2.嵌入式,在页面的<head>和</head>之间。
如:
<style type="text/css">
p{margin: 0;padding: 0; color:red;}
</style>
注:读取速度居中,但维护也居中
3.连接式
<link href="style.css" rel="stylesheet" type="text/css"/>
注:读取速度不及上面2种,但维护较方便;网页设计师最常用
2、求,简单的网页制作成品 要用HTML和CSS样式来做的 只为交作业 要有源代码 ,谢谢
要10个网页制作成品或一个主页有10个窗口链接的,网页中要有图,文字,不已发送,请查收,希望能帮到你~~ 免费的你感觉有人会下力气给你做么
3、跪求,简单的网页制作成品,用HTML和CSS制作的,简单就好,还有源代码
我有好几份。不知道你要什么类型的? 当然如果不合适,我可以给你定做,
4、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>
5、请教网页设计高手,如下图的这种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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<style>
ul{margin:0px;}
li{list-style-type:none;}
.local{height:30px; line-height:30px; border-bottom:1px dashed #999999; font-family:"微软雅黑"; font-size:14px;}
.list{margin-top:20px;}
.list .list-info{height:50px; line-height:50px; border-bottom:1px dashed #999999;}
.list .list-info .company{float:left;}
.list .list-info .range{float:left; font-size:12px; color:#999999; padding-top:2px; padding-left:5px;}
</style>
<body>
<div class="local">首页 > 广东省</div>
<div class="list">
<div class="list-info">
<ul>
<li class="company"><a href=""><b>福建省平潭县流水船务有限公司</b></a></li>
<li class="range">主营:福建,广东,浙江,上海及长江下游航线货物运输</li>
</ul>
</div>
<div style="clear:both;"></div>
<div class="list-info">
<ul>
<li class="company"><a href=""><b>福建省平潭县流水船务有限公司</b></a></li>
<li class="range">主营:福建,广东,浙江,上海及长江下游航线货物运输</li>
</ul>
</div>
<div style="clear:both;"></div>
<div class="list-info">
<ul>
<li class="company"><a href=""><b>福建省平潭县流水船务有限公司</b></a></li>
<li class="range">主营:福建,广东,浙江,上海及长江下游航线货物运输</li>
</ul>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>
6、求用dreamweaver css制作简单网页的代码!!!!急用!符合要求有重谢!!!
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
.head { width:1000px; height:100px; margin:auto; overflow:hidden; border:1px solid #666; }
.banner { width:1000px; height:150px; margin:auto; overflow:hidden; border:1px solid #666; margin-top:10px; }
.main { width:1000px; height:300px; margin:auto; overflow:hidden; border:1px solid #666; margin-top:10px; }
.main .left { width:299px; height:300px; border-right:1px solid #666; float:left; }
.main .center { width:349px; height:300px; border-right:1px solid #666; float:left; }
.main .center .mt { height:100px; border-bottom:1px solid #666;}
.main .center .mb {}
.main .right { width:350px; height:300px; float:left; }
.footer { width:1000px; height:80px; margin:auto; overflow:hidden; border:1px solid #666; margin-top:10px;}
</style>
</head>
<body>
<div class="head">
</div>
<div class="banner">
</div>
<div class="main">
<div class="left"></div>
<div class="center">
<div class="mt"></div>
<div class="mb"></div>
</div>
<div class="right"></div>
</div>
<div class="footer">
</div>
</body>
</html>
7、跪求,简单的网页制作成品 要用HTML和CSS样式来做的 为交作业 要有源代码 十万火急 内容不限
dw软件制作,准备好素材的话半天时间可以完成