我是HTML,CSS的新手,我想在html页面的两侧(左侧和右侧)添加两条垂直线。 的帮助下位将是非常赞赏...非常感谢确实 编辑:该代码现已添加在html页面的右侧和左侧添加两条垂直线(矩形)
<!doctype html>
<html lang="en">
<head>
<style>
#button1{
width: 300px;
height: 40px;
}
#button2{
width: 300px;
height: 40px;
}
#link1{
font-size: 33px;}
#pic1 {
position:fixed;
left:30%;
top:30%;
margin-left:-382px /*half the width*/
margin-top:-370px /*half the height*/
}
</style>
<meta charset="utf-8">
<meta name="Homepage" content="Starting page for the survey website ">
<title> Survey HomePage</title>
</head>
<body>
<img src="kingstonunilogo.jpg" alt="uni logo" style="width:180px;height:160px">
<button type="button home-button" id="button1" >Home</button>
<button type="button contact-button" id="button2">Contact Us</button>
<a href="http://www.w3schools.com/html/" id="link1">LogIn</a>
<img src="homepagepic.jpg" alt="homepagepic" id="pic1" style="width:400px;height:350px">
</body>
</html>
当然,我们想帮助。但是,您希望我们帮助您的代码在哪里? – arkascha
它现在已经被添加了......非常感谢 – Hollywood