IE8浏览有黑边框搜狗浏览器情况未知 IE8浏览时出现黑边框,搜狗浏览器正常。原因是使用了带透明度设置的PNG图片作为背景。首页代码中两个箭头存在透明度问题,建议去掉透明度,或不用PNG图片,改用无透明背景的正方形箭头图片。此问题在IE下较为明显,解决此问题可避免黑边框的出现,提升页面显示效果。下面是小编精心整理编写的关于“ IE8浏览有黑边框搜狗浏览器情况未知 ”的详细教程,请大家仔细阅览学习:
有人反映在使用IE8浏览器浏览时出现黑边框,而搜狗浏览器则显示正常。据了解,该问题可能是由背景图片为png格式且对某些按钮设置了透明度所导致。以下是相关代码:
.slider-wrap { padding-top: 50px; }
.slider-wrap.loader { width:990px; margin: 0 auto; height:19px; background:url(../images/ajax-loader.gif) no-repeat 50% 0; }
.nivoSlider-wrap,.cycleslider-wrap { display:none; padding: 10px; background: url(../images/slider-bg.png) repeat-x 0 100% #FFF; }
.lite-accordion-wrap,.slides-js-wrap { display:none; }
/*Nivo Slider*/
.nivoSlider { position:relative; }
.nivoSlider img { position:absolute; display:none; }
.nivo-slice { display:block; position:absolute; z-index:5; height:100%; }
.nivo-box { display:block; position:absolute; z-index:5; }
.nivoSlider a.nivo-imageLink { position:absolute; top:0px; left:0px; width:100%; height:100%; border:0; padding:0; margin:0; z-index:6; display:none; }
.nivo-html-caption { display: none; }
.nivo-caption { position: absolute; left: 0px; bottom: 80px; z-index: 8; background: url(../images/space.png); padding: 10px 20px 5px; }
.nivo-caption h3 { margin: 0; font-weight: normal; font-size: 18px; color: #FFF; margin-bottom: 5px; }
.nivo-caption.text { color: #FFF; }
.controlnav-thumbs.nivo-controlNav { position:absolute; right: 50px; bottom: -37px; margin:0; }
.controlnav-thumbs.nivo-controlNav a { display:block; position:relative; z-index:9; cursor:pointer; float: left; padding: 6px 6px 10px; background: url(../images/nivo-thumb-bg.png) no-repeat 0 0; }
.controlnav-thumbs.nivo-controlNav a.active { background-position: 0 100%; }
.controlnav-thumbs.nivo-controlNav img { display:inline; position:relative; width: 54px; height: 40px; }
/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a { cursor:pointer; position:absolute; bottom: -25px; z-index:9; width: 18px; height: 32px; background-image: url(../images/nivo-btn.png); background-repeat: no-repeat; text-indent: -999em; }
.nivo-prevNav { right: 313px; background-position: 0 -49px; }
.nivo-prevNav:hover { background-position: 0 0; }
.nivo-nextNav { right: 33px; background-position: 100% -49px; }
.nivo-nextNav:hover { background-position: 100% 0; }
/*Cycle Slider*/
.cycleslider-wrap { position: relative; }
/* Direction nav styles (e.g. Next & Prev) */
#cycle-prev,#cycle-next { position:absolute; top:45%; z-index:9; cursor:pointer; width: 34px; height: 57px; text-indent: -999em; margin-top: -10px; background-image: url(../images/cycle-btn.png); background-repeat: no-repeat; }
#cycle-prev { left:-50px; background-position: 0 0; }
#cycle-prev:hover { background-position: 0 100%; }
#cycle-next { right:-50px; background-position: 100% 0; }
#cycle-next:hover { background-position: 100% 100%; }
#cycle-nav { position:absolute; right: 30px; bottom: -24px; z-index:99; }
#cycle-nav a { position:relative; z-index:9; cursor:pointer; display:block; float:left; width:46px; height:24px; text-align: center; font-size: 10px; margin-left: 1px; color: #999; background: url(../images/cycle-num-btn.png) no-repeat 0 100%; }
#cycle-nav a.activeSlide { color: #333; background-position: 0 0; }
.cycle-slider-caption { position: absolute; left: 0px; bottom: 80px; z-index: 8; background: url(../images/space.png); padding: 15px 20px; }
.cycle-slider-caption h3 { margin: 0; font-weight: normal; font-size: 18px; color: #FFF; margin-bottom: 5px; }
.cycle-slider-caption.text { color: #FFF; }
/*Lite accordion*/
.lite-accordion-slider { text-align: left; }
.lite-accordion-slider > ol { position: relative; overflow: hidden; height: 100%; }
.lite-accordion-slider.slide > h2 { color: black; font-size: 16px; font-weight: normal; margin: 0; z-index: 30; position: absolute; top: 0; left: 0; -webkit-transform: translateX(-100%) rotate(-90deg); -webkit-transform-origin: right top; -moz-transform: translateX(-100%) rotate(-90deg); -moz-transform-origin: right top; -o-transform: translateX(-100%) rotate(-90deg); -o-transform-origin: right top; transform: translateX(-100%) rotate(-90deg); transform-origin: right top; -ms-filter: “progid:DXImageTransform.Microsoft.BasicImage(rotation=3)”; filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); }
.lite-accordion-slider.slide > h2 span { display: block; padding-right: 8%; text-align: right; height: 90%; margin-top: 2px; -moz-user-select: none; -khtml-user-select: none; user-select: none; }
.lite-accordion-slider.slide > h2:hover { cursor: pointer; }
.lite-accordion-slider.slide > div { height: 100%; position: absolute; top: 0; z-index: 10; overflow: hidden; }
.lite-accordion-slider figcaption { position: absolute; bottom: 30px; right: 30px; z-index: 8; background: url(../images/space.png); padding: 15px 20px; }
.lite-accordion-slider figcaption h3 { margin: 0; font-weight: normal; font-size: 18px; color: #FFF; margin-bottom: 5px; }
.lite-accordion-slider figcaption.text { color: #FFF; }
.light { padding: 11px 10px 10px 13px; background: url(../images/lite-accordion-bg.png) no-repeat; }
.light.slide > h2 { background: url(../images/lite-ac-btn.png) no-repeat 0 0; line-height: 265% }
.light.slide > h2 span { color: #909090; }
.light.slide > h2.selected,.light.slide h2:hover { background: url(../images/lite-ac-btn-hover.png) no-repeat 0 0; }
.light.slide > h2.selected span,.light.slide h2.selected span:hover { color: #333; }
.light.slide > div { background: #D1D1D1; }
.ie9.slide > h2 { filter: none; -ms-transform: translateX(-100%) rotate(-90deg); -ms-transform-origin: right top; }
/* Slideshow*/
#slides { position:relative; padding: 30px 0 30px; }
.slides_container { width:990px; overflow:hidden; position:relative; display:none; }
.slides_container.slide { width:990px; display:block; }
/* Next/prev buttons*/
#slides.next,#slides.prev { position:absolute; top:45%; display:block; z-index: 10; width: 17px; height: 29px; background-image: url(../images/slides-js-nav.png); background-repeat: no-repeat; text-indent: -999em; }
#slides.next { right: -60px; background-position: 100% 0; }
#slides.next:hover { background-position: 100% 100%; }
#slides.prev { left: -60px; background-position: 0 0; }
#slides.prev:hover { background-position: 0 100%; }
/* Pagination*/
#slides.pagination { position: absolute; left: 45%; bottom: -20px; margin-left: -10px; }
#slides.pagination li { float:left; list-style:none; margin: 0 3px; }
#slides.pagination li a { display: block; width: 11px; height: 12px; padding: 0; margin: 0; border: none; text-indent: -999em; background: url(../images/slides-js-btn.png) 0 0 no-repeat; }
#slides.pagination li.current a { background-position: 100% 0; }
/* Caption*/
#slides.caption { z-index:500; position:absolute; top: 80px; left: 550px; width: 400px; }
#slides.caption h3 { font-size: 24px; }
/* * Home Page slideshow * jQuery FlexSlider v1.8 * http://flex.madebymufffin.com *//* Browser Resets */
.flex-container a:active,.flexslider a:active { outline: none; }
.slides,.flex-control-nav,.flex-direction-nav { margin: 0; padding: 0; list-style: none; }
/* FlexSlider Necessary Styles*********************************/
.flexslider { width: 100%; margin: 0; padding: 0; }
.flexslider.slides > li { display: none; } /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider.slides img { max-width: 100%; display: block; }
/* FlexSlider Default Theme*********************************/
.flexslider { position: relative; }
.flexslider.slides { zoom: 1; }
.flexslider.slides > li { position: relative; }
.flex-container,.sc-slider-list { zoom: 1; position: relative; }
.sc-slider-list.flex-direction-nav li a { position: absolute; top: 70px; display: block; width: 22px; height: 24px; text-indent: -9999em; background-image: url(../images/shortcode/sc-sider-btn.png); background-repeat: no-repeat; }
.sc-slider-list.flex-direction-nav li.prev { left: -40px; background-position: 0 0; }
.sc-slider-list.flex-direction-nav li.prev:hover { background-position: -47px 0; }
.sc-slider-list.flex-direction-nav li.next { right: -40px; background-position: -23px 0; }
.sc-slider-list.flex-direction-nav li.next:hover { background-position: -71px 0; }
针对IE8浏览器出现黑边框的问题,提出的解决办法是:将那两个箭头的透明度去掉,因为在IE下PNG图片再加透明度就会导致这样的情况。此外,还可以考虑将PNG图片改为非PNG格式的图片,比如弄个正方形的箭头图片,不再使用透明背景,以避免该问题的出现。
关于《IE8浏览有黑边框搜狗浏览器情况未知》这篇文章的具体内容就介绍到这里,希望能对大家有所帮助。更多相关资讯和教程请关注 搜狗输入法!
Win10中搜狗浏览器如何打开代替ie浏览器 尽管微软不再推荐使用IE浏览器,但在Win10系统中仍可找到。本文介绍在Win10中打开搜狗浏览器的方法:点击开始菜单后打开所有应用,在Windows附件 […]
Win10自带浏览器卸载提及搜狗浏览器 Win10系统中预装了搜狗浏览器,部分人可能觉得不好用,想卸载。本文将指导您卸载。首先,鼠标右击电脑左下角图标,出现下拉菜单后点击相应按钮进入。接着,在新页面输 […]
搜狗浏览器清理缓存的方法介绍 搜狗浏览器会缓存网页和数据以提升加载速度,但缓存过大可能致浏览器运行缓慢,定期清理很重要。清理步骤为:打开搜狗浏览器设置,找到“隐私”设置,点击“清除浏览数据”,选择要清 […]
搜狗浏览器如何彻底卸载干净 搜狗浏览器下载网小编子墨为您介绍彻底卸载搜狗浏览器的方法。日常中,完全删除搜狗浏览器以解决问题或重新安装时,简单卸载无法清除残留文件。先找到浏览器快捷方式,右键选择“打开文 […]
搜狗浏览器如何关闭网站拦截 本文介绍了在搜狗浏览器中关闭网站拦截的方法。用户点击浏览器图标,在右上角菜单中选择设置,进入设置窗口后切换到隐私与安全选项卡,找到阻止弹出式窗口选项并按下例外按钮,在网站地 […]
搜狗浏览器如何清除启动缓存 在搜狗浏览器中清除启动缓存:打开浏览器,点击右上角三横图标,在下拉选项卡中选择帮助,在显示的功能选项中点击更多排障信息,进入排障信息窗口后,在右侧板块按下清除启动缓存选项, […]
Win10浏览器主页被篡改搜狗浏览器如何应对 当发现Win10的搜狗浏览器主页被2345篡改时,不必惊慌,解决方法如下:重置浏览器设置,检查恶意软件,重新设置网络设置,清除浏览器缓存和历史记录,重建快 […]
搜狗浏览器未响应的解决方法 不少用户反映搜狗浏览器网页一直未响应,本文整理了解决方法。先打开搜狗浏览器,点击右上角帮助选择修复浏览器,根据问题情况选择修复内容,建议修复全部选项,修复前需保存工作。若问 […]