修改易通CmsEasy产品图片的较宽内边距为细线和左侧文字说明与小图标之间的距离
2012-12-16 00:43
357 查看
在模板编辑状态下,对/archive/show_products.html文件里的代码进行修改:
padding:0px;
border:1px solid #ccc;
border-right:1px solid #ccc;
border-bottom:1px solid #ccc;
针对上述4行代码,A、把5px改为0px,使原先看上去又粗又宽又丑的灰色内边距线没有了;B、把border-right和border-bottome的#white改为与border一样的颜色#ccc,使原先看上又粗又宽又丑的边线变成了1px的#ccc颜色细线;
C、在完成步骤A后,直接用/* */把border-right和border-bottome括起来,也能使原先看上又粗又宽又丑的边线变成了1px的#ccc颜色细线。
修改padding-left的px值可以调整图片下方“产品介绍”及产品介绍左侧的黄色“小图标”的距离。
#image_box { margin:0 auto; width:326px; height:90%; /*非IE的主流浏览器识别的垂直居中的方法*/ display: table-cell; vertical-align:middle; /*设置水平居中*/ text-align:center; /* 针对IE的Hack */ *display: block; *font-size: 139px;/*约为高度的0.873,200*0.873 约为175*/ *font-family:Arial;/*防止非utf-8引起的hack失效问题,如gbk编码*/ padding:5px; border:1px solid #ccc; _border:none; background:url({$skin_path}/images/pic_bg.gif) left top no-repeat; border-right:1px solid #white; border-bottom:1px solid #white; }
padding:0px;
border:1px solid #ccc;
border-right:1px solid #ccc;
border-bottom:1px solid #ccc;
针对上述4行代码,A、把5px改为0px,使原先看上去又粗又宽又丑的灰色内边距线没有了;B、把border-right和border-bottome的#white改为与border一样的颜色#ccc,使原先看上又粗又宽又丑的边线变成了1px的#ccc颜色细线;
C、在完成步骤A后,直接用/* */把border-right和border-bottome括起来,也能使原先看上又粗又宽又丑的边线变成了1px的#ccc颜色细线。
.p_info {height:40px;line-height:40px;padding-left:20px;background:url({$skin_path}/images/comment.gif) left center no-repeat;border-bottom:1px dotted #ccc;}
修改padding-left的px值可以调整图片下方“产品介绍”及产品介绍左侧的黄色“小图标”的距离。
相关文章推荐
- 修改易通CMSeasy即将被下载文档图片的边线及图片与下方文字之间的距离
- 修改易通CMSeasy产品中心产品图片列表的连线大小及颜色
- android checkBox图片与文字之间的距离
- Android EditText组件drawableLeft属性设置的图片和hint设置的文字之间的距离
- iOS开发小技巧--修改按钮内部图片和文字之间的间距(xib)
- EditText组件drawableLeft属性设置的图片和hint设置的文字之间的距离
- EditText组件drawableLeft属性设置的图片和hint设置的文字之间的距离
- iOS开发之修改分页控制器UIPageControl的图片和大小以及圆点之间的距离
- button中图片跟文字之间距离的设置
- 安卓RadioButtom设置图片与文字之间的距离
- Swift - 修改导航栏“返回”按钮文字,图标
- pdf文档图片怎么添加,文字怎么修改
- 项目实践之修改图片画布大小(图像不变),增加文字水印
- NSIS——修改图标及图片
- android自定义CheckBox和RadioButton中文字和图片之间距离问题解决
- 仿照京东做的一个鼠标移上去的图片文字说明效果
- R语言 如何为图片添加文字说明(转载)
- Android 自定义View消除锯齿实现图片旋转,添加边框及文字说明
- Android(1.5及以上版本) 开机图片/文字/动画分析[转载、修改部分内容]
- Android 开机图片/文字/动画 修改