论坛
标题:
有问题,为什么我弄的搜索框放上去周围会有白边
[打印本页]
作者:
tqq288
时间:
2016-9-18 15:44
标题:
有问题,为什么我弄的搜索框放上去周围会有白边
不知道什么原因,弄好预览是这样的
[attach]67530[/attach]
搜索框旁边会有白边。可是代码明明没弄呢,很疑惑,老师能帮我看看吗?
代码:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
*{
padding:0px;
margin:0px;}
</style>
</head>
<body>
<p><img src="https://img.alicdn.com/imgextra/i1/753204792/TB2GK3mXvPB11BjSsppXXcjYVXa_!!753204792.gif" alt=" 店招2.gif"/></p>
<div style="top:126px;left:695px;porder:none;padding:0;width:160px;"class="footer-more-trigger">
<form class="focus" name="SearchForm" action="https://shop101390466.taobao.com" method="get" target="_blank">
<input type="hidden" name="userId" value="" />
<input type="hidden" name="shopId" value="101390466" />
<input type="hidden" name="view_type" value="" />
<input type="hidden" name="order_type" value="" />
<input type="hidden" name="search" value="y" />
<input id="J_ShopSKey" name="keyword" type="text" class="text J_SEKeyword" value="" style="width:136px;height:19px;border:#01114f 1px solid;float:left;">
<input type="image" src="https://img.alicdn.com/imgextra/i1/753204792/TB2dBUnXw_z11Bjy1XbXXaScFXa_!!753204792.png" border="0" WIDTH="21" height="21" align=absmiddle style="float:left;">
</form>
</div>
</body>
</html>
作者:
韩文强
时间:
2016-9-18 22:19
class="footer-more-trigger" 给元素添加了这个属性之后会默认自带边框的,只要在style样式中添加border:none就可以了。
作者:
tqq288
时间:
2016-9-19 14:07
韩文强 发表于 2016-9-18 22:19
class="footer-more-trigger" 给元素添加了这个属性之后会默认自带边框的,只要在style样式中添加border:no ...
恩恩,貌似写错字了哈哈。谢谢老师亲自解答嘻嘻~很喜欢你的课呢
欢迎光临 论坛 (http://bbs.qinxue.com/)
Powered by Discuz! X3.1