html - 使用CSS在适当的位置显示文本和按钮

标签 html css

访问link1 , 没关系。但是访问link2存在一些问题

1) 在第二个链接中,巨大的差距 b/w 25 卢比和“售价 + 10 卢比送货”,添加到购物车并立即购买按钮。

2) 也只有文本“关闭” 可见,“50”进入了“检查交货可用性”框。 50 及以下应该可见

我们正在使用这段代码:

.wk_mp_design .sell_price {  display: none;}
.wk_mp_design .label.yousave_label {display: none;}
.wk_mp_design .old-price .price {color: #a0a0a0;font-size: 12px;font-weight: bold;}
.wk_mp_design .you_save_price {color: green;font-size: 11px;font-weight: bold;}
.wk_mp_design .you_save_price::after {content: "OFF";}
.wk_mp_design .special-price .price {color: #000;font-size: 13px;font-weight: bold;}
.wk_mp_design .regular-price .price {color: #000;font-size: 13px;font-weight: bold;}
.wk_mp_design .special-price {border-top: 1px dotted #ccc;clear: both;}
.wk_mp_design .You_savee {float: right;position: relative;top: -49px;}
.wk_mp_design .You_savee .special-price.yousave {border: medium none;}
.wk_mp_design .desc.std {border-top: 1px dotted #ccc;}
.wk_mp_design .mrp {display: none;}

enter image description here

最佳答案

1> height is the issue; use this

.product-view .product-essential .product-shop .price-box {
    padding-bottom: 0 !important;
    height: 75px;
}

2> top value is the issue; use this

.Quick .You_savee {
    border: 1px solid #ccc;
    border-radius: 37px;
    color: green;
    left: 151px;
    padding: 0;
    position: relative !important;
    top: -70px !important;
    width: 49px;
}

if above classes are used in multiple places just override these classes

关于html - 使用CSS在适当的位置显示文本和按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35382931/

相关文章:

jquery - IE8 上的 JQuery 循环问题

html - 为什么 chrome 无法识别此登录表单?

html - CSS 按钮在移动设备上与框重叠

html - contentEditable DIV 上的框大小以隐藏第一个和最后一个字符

css - Angular 和 bootstrap UI 选项卡都处于事件状态以防止默认

javascript - 如何使用带有 javascript 函数的自定义 URL 动态创建 "Share This buttons"?

javascript - Asp NET在不同解决方案中共享html组件

html - 如何让标签和文本框针对不同的屏幕尺寸正确对齐

html - 二维变换过渡不适用于 IE11 中的 VW 和 VH 单元

ASP.NET AJAX CalendarExtender - Android 浏览器问题