以下为源代码。勿喷!!
很简单的基本功能实现,运用到css的一些属性,盒子模型 绝对定位等等!
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>bing搜索</title>
<style type="text/css">
body{background: #333;}
.lo{background-image: url(背景.jpg);height: 640px;width: 1366px;margin: 0 auto;}
.logo{background-image: url(hee.png);width: 128px;height: 128px;float: left;margin-top:-40px; }
.botton1{height: 35px;width: 190px;float: left;border: 0 ;outline: none; font-size: 25px;background-color: #fff;}
.botton2{background-image: url(搜索.png);height: 46px;width: 45px;float: left;border:0;}/*设置按钮背景图片="搜索.png" 设置高 宽 浮动方向 清除边框样式*/
form{float: left;background-color: #fff;}
.all{position: absolute;top: 350px;left: 500px;}/*相对定位 设置距离上方为350像素 左边为500像素*/
</style>
</head>
<body>
<div class="lo">
<div class="all">
<div class="logo"></div>
<form>
<input type="text" class="botton1"/>
<input type="submit" class="botton2" value=""/>
</form>
</div>
</div>
</body>
</body>
</html>
下面为浏览器打开视图!!
IE打开还是没有什么变化,兼容性一般般