当当网首页——CSS代码

@charset "utf-8";
/* CSS Document *//*首页样式*/
/*右侧随鼠标滚动的广告图片*/
.right{top:50px;right:30px;position:absolute;z-index:3;
}
.dd_close{width:35px;height:18px;text-align:center;border:solid 1px #999;background-color:#E0E0E0;top:0px;right:0px;position:absolute;
}
/*通栏广告样式*/
.dd_index_top_adver{margin:5px 0px 5px 0px;clear:both;
}
#catList,#content,#silder{float:left;
}
#catList{width:180px;margin-right:10px;margin-top:10px;
}
#content{width:540px;margin-right:10px;
}
#silder{width:220px;margin-top:10px;
}
.book_sort{border:solid 1px #999;margin-bottom:10px;
}
.book_sort_bg{background-color:#fff0d9;padding-left:10px;color:#882D00;font-size:14px;height:25px;font-weight:bold;line-height:30px;
}
.book_sort_bottom{margin:0px 10px 0px 10px;line-height:25px;border-bottom:solid 1px #666;
}
.book_cate{padding:10px 0px 0px 10px;font-weight:bold;
}
.scroll_top{background-image:url(../images/dd_scroll_top.gif);width:540px;height:51px;background-repeat:no-repeat;
}
.scroll_mid{background-color:#f2f2f3;border-left:solid 1px #d6d5d6;border-right:solid 1px #d6d5d6;width:533px;height:185px;overflow:hidden;padding:5px 0px 5px 5px;position:relative;
}
.scroll_mid #scroll_img li{margin-bottom:20px;
}
#dd_scroll{ /*FF*/float:none;
}
*html #dd_scroll{float:left; /*IE6*/
}
*+html #dd_scroll{float:left; /*IE7*/
}
#scroll_number{right:0;padding-right:10px;position:absolute;top:5px;
}
#scroll_number li{width:13px;height:13px;text-align:center;border:solid 1px #999;margin-top:5px;font-size:12px;line-height:16px;cursor:pointer;
}
.scroll_number_out{
}
.scroll_number_over{background-color:#F96;color:#FFF;
}
.scroll_end{background-image:url(../images/dd_scroll_end.gif);width:540px;height:8px;background-repeat:no-repeat;margin-bottom:10px;
}
.book_new{background-image:url(../images/dd_book_bg.jpg);background-repeat:repeat-x;height:25px;line-height:30px;clear:both;
}
.book_left{margin:0px 50px 0px 10px;color:#882D00;font-size:14px;font-weight:bold;float:left;
}
.book_type{float:left;margin-left:3px;background-image:url(../images/dd_book_bg1.jpg);background-repeat:no-repeat;width:40px;height:23px;margin-top:2px;text-align:center;cursor:pointer;
}
.book_type_out{float:left;margin-left:3px;background-image:url(../images/dd_book_bg2.jpg);background-repeat:no-repeat;width:40px;height:23px;margin-top:2px;text-align:center;color:#882D00;font-weight:bold;cursor:pointer;
}.book_right{float:right;margin-right:5px;
}
.book_class{clear:both;margin:0 5px;
}
#dome{overflow:hidden; /*溢出的部分不显示*/height:250px;padding:5px;
}
#book_history dt,#book_family dt,#book_novel dt,#book_culture dt{float:left;width:90px;text-align:center;
}
#book_history dd,#book_family dd,#book_novel dd,#book_culture dd{float:left;width:170px;margin:0px 0px 5px 0px;border:2px #fff solid;
}
.book_none{display:none;
}
.book_show{display:block;
}
.book_title{color:#1965b3;font-size:14px;
}
.book_publish{color:#C00;
}
#book_focus dt{width:125px;margin:5px 0px 0px 7px;float:left;text-align:center;height:90px;display:inline;
}
#book_focus dd{width:125px;margin:5px 0px 0px 7px;float:left;height:40px;display:inline;
}
#express li{height:25px;border-bottom:dashed 1px #999;margin:0px 5px 0px 5px;line-height:28px;
}
.book_express_avder{margin:5px 0px 5px 0px;text-align:center;
}
.book_seven_title{background-color:#518700;color:#ffffff;font-size:14px;height:25px;padding-left:10px;line-height:28px;
}
.book_seven_border{background-color:#f2f4df;margin:3px;
}
.book_seven_top{background-image:url(../images/dd_seven_bg.jpg);background-repeat:repeat-x;height:18px;clear:both;
}
.book_seven_content{border:solid 1px #bdc1c4;border-top:0px;clear:both;padding:3px;height:375px;
}
#book_seven_cate li{float:right;background-image:url(../images/dd_seven_bg1.jpg);background-repeat:no-repeat;width:35px;height:18px;text-align:center;cursor:pointer;
}
#book_seven_cate li:hover{float:right;background-image:url(../images/dd_seven_bg2.jpg);background-repeat:no-repeat;width:35px;height:18px;text-align:center;color:#882D00;
}
.book_seven_content_left{float:left;width:22px;
}
.book_seven_content_right{width:175px;float:left;
}
#book_seven_number dt{height:85px;
}
#book_seven_number dd{height:25px;
}
#book_seven_hearten dt{width:55px;text-align:center;float:left;
}
#book_seven_hearten dd{width:120px;float:left;height:85px;
}
#book_seven_hearten ul li{line-height:24px;
}
/*网页版权部分样式开始*/
.footer_top,.footer_end{width:800px;margin:0px auto 0px auto;clear:both;text-align:center;
}
.footer_top{color:#9B2B0F;
}
.footer_dull_red,.footer_dull_red:hover{color:#9B2B0F;margin:0px 8px 0px 8px;
}
/*网页版权部分样式结束*//*当当网商品展示页样式开始*/
.current_place{padding-left:10px;clear:both;height:30px;
}
#product_left{width:180px;float:left;
}
#product_catList{border:solid 1px #d3d3d3;background-color:#fff4d7;
}
.product_catList_top{color:#FFF;height:23px;font-size:14px;padding-left:10px;background-image:url(../images/product_left_top_bg.gif);background-repeat:repeat-x;line-height:28px;margin-bottom:10px;
}
#product_catList_class li{height:25px;padding-left:10px;
}
.product_catList_end{border:solid 1px #d3d3d3;margin:10px 0px 10px 0px;text-align:center;
}
#product_storyList{border:solid 1px #a1a1a1;float:right;width:770px;margin-bottom:20px;}
#product_storyList_top{background-color:#f9d8a9;border-bottom:solid 1px #a1a1a1;height:30px;
}
#product_storyList_top li{float:left;line-height:28px;padding-left:5px;
}
#product_storyList_top img{padding-top:5px;}
#product_array{background-color:#f9d8a9;border-bottom:solid 1px #a1a1a1;height:30px;padding-right:15px;
}
#product_array a{line-height:22px;margin-right:0px;margin-top:5px;padding:0 5px;float:right;background:none;border:#808080 1px solid;
}
#product_array a.click{background:#F96;border:#F04E23 1px solid;
}
.product_storyList_content{margin:20px 10px 20px 10px;
}
.product_storyList_content .big_img_list{width:25%;height:240px;background:#fff;float:left;overflow:hidden;text-align:left;margin:10px auto;position:relative;
}
.product_storyList_content .big_img_list.over{overflow:visible;z-index:99;
}
.product_storyList_content .big_img_list ul{background:#fff;padding:0 5px 5px;
}
.product_storyList_content .big_img_list ul.over{border:2px solid #F96;position:absolute;z-index:99;
}
.product_storyList_content .big_img_list li{padding:2px 5px;font-size:12px;
}
.product_storyList_content .big_img_list li a{padding:2px 10px;font-size:12px;
}
.product_storyList_content .big_img_list .bookImg img{width:150px;height:150px;
}
.product_storyList_content .big_img_list dl{width:100%;overflow:hidden;
}
.product_storyList_content .big_img_list dl dd{float:left;margin-left:10px;
}
.product_storyList_content_bottom{border-bottom:1px solid #666;clear:both;margin-bottom:20px;
}
.product_storyList_content_left{width:100px;text-align:center;float:left;
}
.product_storyList_content_right{float:left;width:640px;
}
.product_storyList_content_dash{border-bottom:dashed 1px #666;
}
.blue_14{color:#1965b3;font-size:14px;text-decoration:none;
}
.blue_14:hover{color:#1965b3;text-decoration:underline;font-size:14px;
}
.product_content_dd dd{float:right;padding-right:10px;
}
.product_content_delete{text-decoration:line-through;
}
#product_page li{float:left;
}
.product_page{width:16px;height:15px;text-decoration:none;float:left;display: block;background-color:#FC6;margin:0px 3px 1px 0px;text-align:center;}
.product_page:hover{width:16px;height:15px;text-decoration:none;float:left;display: block;background-color:#900;margin:0px 3px 1px 0px;color:#FFF;}
/*购物车页面样式开始*/
.shopping_commend{background-image:url(../images/shopping_commend_bg.gif);background-repeat:repeat-x;height:21px;border:solid 1px #999;
}
.shopping_commend_left{float:left;padding-left:10px;
}
.shopping_commend_right{float:right;padding-right:10px;margin-top:3px;
}
.shopping_commend_right img{cursor:pointer;
}
#shopping_commend_sort{border:solid 1px #999;border-top:0;padding:5px 20px 5px 20px;height:120px;
}
.shopping_commend_sort_left{float:left;width:450px;
}
.shopping_commend_sort_mid{float:left;width:15px;background-image:url(../images/shopping_dotted.gif);background-repeat:repeat-y;height:120px;
}
.shopping_commend_list_1,.shopping_commend_list_2,.shopping_commend_list_3,.shopping_commend_list_4{float:left;height:30px;line-height:30px;
}
.shopping_commend_list_1{width:240px;
}
.shopping_commend_list_2{width:70px;text-align:center;text-decoration:line-through;color:#999;
}
.shopping_commend_list_3{width:70px;text-align:center;
}
.shopping_commend_list_4{text-align:center;width:65px;
}
.shopping_yellow{color:#ED610C;
}
.shopping_yellow:hover{color:#ED610C;text-decoration:underline;
}
.shopping_list_top{clear:both;font-size:14px;font-weight:bold;margin-top:20px;
}
.shopping_list_border{border:solid 2px #999;
}
.shopping_list_title{background-color:#d8e4c6;height:25px;
}
.shopping_list_title li{float:left;line-height:28px;
}
.shopping_list_title_1{width:420px;padding-left:30px;text-align:left;
}
.shopping_list_title_2{width:120px;text-align:center;
}
.shopping_list_title_3{width:120px;text-align:center;
}
.shopping_list_title_4{width:120px;text-align:center;
}
.shopping_list_title_5{width:70px;text-align:center;
}
.shopping_list_title_6{width:70px;text-align:center;
}
.shopping_product_list{background-color:#fefbf2;height:40px;}
.shopping_product_list input{width:30px;height:15px;border:solid 1px #666;text-align:center;
}
.shopping_product_list td{line-height:35px;border-bottom:dashed 1px #CCC;
}
.shopping_product_list_1{width:420px;padding-left:30px;text-align:left;
}
.shopping_product_list_2{width:120px;text-align:center;color:#464646;
}
.shopping_product_list_3{width:120px;text-align:center;color:#464646;
}
.shopping_product_list_4{width:120px;text-align:center;color:#191919;
}
.shopping_product_list_5{width:70px;text-align:center;
}
.shopping_product_list_6{width:70px;text-align:center;
}
.shopping_list_end{background-color:#cddbb8;height:84px;
}
.shopping_list_end li{float:right;
}
.shopping_list_end_1{margin:10px 10px 0px 10px;
}
.shopping_list_end_2{font-weight:bold;color:#BD3E00;font-size:14px;margin:15px 10px 0px 0px;
}
.shopping_list_end_3{font-weight:bold;font-size:14px;margin:15px 0px 0px 15px;
}
.shopping_list_end_4{border-right:solid 1px #666666;margin:10px 0px 0px 15px;padding-right:10px;
}
.shopping_list_end_yellow{color:#BD3E00;
}
.shopping_list_end #removeAllProduct{line-height:24px;padding:0 5px;margin-left:20px;color:#1965B3;
}
.empty_product{height:300px;background:#d3d3d3;font-size:16px;text-align:center;position:relative;
}
.empty_product div{padding-top:120px;
}
.empty_product a{color:#1965B3;
}
/*注册页面样式*/
#register_header{background-image:url(../images/register_head_bg.gif);background-repeat:repeat-x;height:48px;border:solid 1px #CCC;
}
.register_header_left{float:left;margin:7px 0px 0px 40px;display:inline;
}
.register_header_right{float:right;margin:25px 20px 0px 0px;display:inline;
}
.register_content{width:950px;margin:15px auto 15px auto;
}
.register_top_bg{background-image:url(../images/register_top_bg.gif);background-repeat:no-repeat;height:5px;
}
.register_mid_bg{border:solid 1px #a3a3a3;border-top:0px;height:32px;
}
.register_mid_bg li{float:left;
}
.register_mid_left{background-image:url(../images/register_tag_left.gif);height:32px;width:207px;background-repeat:no-repeat;padding:0px 0px 0px 106px;font-size:14px;color:#501500;font-weight:bold;line-height:35px;
}
.register_mid_mid{background-image:url(../images/register_tag_mid.gif);height:32px;width:204px;background-repeat:no-repeat;padding:0px 0px 0px 115px;font-size:14px;line-height:35px;
}
.register_mid_right{background-image:url(../images/register_tag_right.gif);height:32px;width:316px;background-repeat:no-repeat;font-size:14px;line-height:35px;text-align:center;
}
.register_top_bg_two_left{float:left;background-image:url(../images/register_cont.gif);width:1px;height:406px;background-repeat:no-repeat;
}
.register_top_bg_two_right{float:right;background-image:url(../images/register_cont.gif);width:1px;height:406px;background-repeat:no-repeat;
}
.register_top_bg_mid{background-image:url(../images/register_shadow.gif);background-repeat:repeat-x;
}
.register_title_bg{background-image:url(../images/register_pic_01.gif);background-position:123px 30px;background-repeat:no-repeat;padding:42px 0px 0px 202px;color:#C30;
}
.register_dotted_bg{background-image:url(../images/register_dotted.gif);background-repeat:repeat-x;height:1px;margin:0px 20px 20px 20px;
}
.register_message{float:left;height:300px;width:900px;
}
.register_row{clear:both;
}
.register_row dt{float:left;width:200px;height:30px;text-align:right;font-size:14px;
}
.register_row dd{float:left;margin-right:5px;display:inline;
}
.register_input{width:200px;height:18px;border:solid 1px #999;margin:0px 0px 8px 0px;
}
.registerBtn{height:35px;margin:10px 0px 10px 200px;clear:both;
}
/*注册页面提示样式*/
.register_input_Blur{background-color:#fef4d0;width:200px;height:18px;border:solid 1px #999;margin:0px 0px 8px 0px;
}
.register_input_Focus{background-color:#f1ffde;width:200px;height:18px;border:solid 1px #999;margin:0px 0px 8px 0px;
}
.register_prompt{font-size:12px;color:#999;
}
.register_prompt_error{font-size:12px;color:#C8180B;border:solid 1px #999;background-color:#fef4d0;padding:0px 5px 0px 5px;height:18px;
}
.register_prompt_ok{background-image:url(../images/register_write_ok.gif);background-repeat:no-repeat;width:15px;height:11px;margin:5px 0px 0px 5px;
}/*登录页面样式*/
.login_header_left{float:left;margin:30px 10px 0px 100px;
}
.login_header_mid{float:left;margin:55px 0px 0px 0px;
}
.login_header_right{float:right;margin:50px 60px 0px 0px;
}
.login_main_left{float:left;
}
.login_main_left img{float:left;border:0px;
}
.login_main_end{margin:0px 0px 0px 30px;width:540px;
}.login_green{margin:20px 0px 20px 0px;float:left;width:150px;
}
.login_green dt{color:#519403;font-weight:bold;
}
.login_green dd{color:#666666;line-height:25px;
}
.login_main_dotted{float:left;background-image:url(../images/shopping_dotted.gif);width:1px;height:90px;margin:20px 15px 20px 15px;
}
.login_main_mid{border:solid 1px #666;float:left;width:300px;padding:10px 5px 10px 5px;
}
.login_main_right{float:left;width:74px;
}
.login_main_right img{border:0px;
}
.login_content_top{background-image:url(../images/login_icon_bg_01.gif);background-position:-300px -30px;background-repeat:no-repeat;padding:10px 0px 0px 35px;font-weight:bold;font-size:14px;color:#900;
}
.login_content_line{background-image:url(../images/login_icon_bg_02.gif);background-position:0px -195px;background-repeat:repeat-x;height:3px;margin:0px 0px 30px 0px;
}
.login_content{clear:both;margin:10px 0px 0px 0px;
}
*html .login_content{/*IE6*/display:inline;
}
*+html .login_content{/*IE7*/display:inline;
}
.login_content dt{font-size:14px;height:30px;text-align:right;width:150px;float:left;
}
.login_content dd{float:left;
}
.login_content_input{width:120px;height:16px;border:solid 1px #999;
}
.login_content_input_Focus{background-color:#f1ffde;width:120px;height:16px;border:solid 1px #999;
}
.login_btn_out{background-image:url(../images/login_icon_bg_01.gif);background-position:0px -30px;background-repeat:no-repeat;width:77px;height:26px;border:0px;cursor:pointer;
}
.login_btn_over{background-image:url(../images/login_icon_bg_01.gif);background-position:-78px -30px;background-repeat:no-repeat;width:77px;height:26px;border:0px;cursor:pointer;
}
.login_content_dotted{background-image:url(../images/register_dotted.gif);height:1px;background-repeat:repeat-x;margin:60px 0px 0px 0px;overflow:hidden; /*使div的高度为1px*/
}
.login_content_end_bg{background-image:url(../images/login_icon_bg_02.gif);background-repeat:repeat-x;background-position:0px 0px;padding:10px 20px 10px 20px;
}
.login_content_end_bg_top{clear:both;
}
.login_content_bold{font-weight:bold;color:#333;
}
.login_content_end_bg_end{clear:both;text-align:right;padding:10px;
}
.login_register_out{background-image:url(../images/login_icon_bg_01.gif);background-position:0px -3px;background-repeat:no-repeat;width:144px;height:26px;border:0px;cursor:pointer;
}
.login_register_over{background-image:url(../images/login_icon_bg_01.gif);background-position:-144px -3px;background-repeat:no-repeat;width:144px;height:26px;border:0px;cursor:pointer;
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/329031.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Java NIO系列教程(七) FileChannel

转载自 Java NIO系列教程(七) FileChannel 译文链接 作者:Jakob Jenkov 译者:周泰 校对:丁一 Java NIO中的FileChannel是一个连接到文件的通道。可以通过文件通道读写文件。 FileChannel无法设置为非阻塞…

js+php在线截图 jquery fileupload.js,另一种图片上传 jquery.fileupload.js

今天遇到另外一种上传图片方法用jquery.fileupload.js一个文件类型的元素$("#fileupload").fileupload({datatype:"json",url: "/File/UploadFiles",done: function (e, data) { //上传结束的操作if (data.result[0].result ! "OK") /…

当当网首页——JS代码

$(function($){//打开一个广告窗口window.open(open.html,,top0,left200,width500,height327,scrollbars0,resizable0);//随滚动条滚动的可关闭广告窗口$(window).scroll(function(){var st $(this).scrollTop()50;$("#right").css("top",st);});$("…

Java NIO系列教程(一) Java NIO 概述

转载自 Java NIO系列教程(一) Java NIO 概述 译文链接 作者:Jakob Jenkov 译者:airu 校对:丁一 Java NIO 由以下几个核心部分组成: ChannelsBuffersSelectors 虽然Java NIO 中除此之外还有很多…

linux原有的文件系统扩展,原来linux不用LVM也能扩展文件系统

以前总以为UNIX/LINUX使用了lvm才能扩展或缩小卷和文件系统,今天才发现我错了:即使没有lvm,linux也能扩展卷和及其相应的文件系统而不会丢失原有数据。以下是测试步骤,记录备查。1、系统是redhat linux 6[rootlocalhost ku]# unam…

当当网上书店购物车——源码

关于当当网的所有图片资源都已上传&#xff0c;下载地址&#xff1a;当当网资料&#xff0c;点击下载即可&#xff0c;下面上html代码&#xff1a; <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml…

Java NIO系列教程(二) Channel

转载自 Java NIO系列教程&#xff08;二&#xff09; Channel译文链接 作者&#xff1a;Jakob Jenkov 译者&#xff1a;airu 校对&#xff1a;丁一 Java NIO的通道类似流&#xff0c;但又有些不同&#xff1a; 既可以从通道中读取数据&#xff0c;又可以写数据到通…

linux写入二进制文件内容,linux – 从管道读取数据并写入标准输出,中间延迟.必须处理二进制文件...

我现在已经尝试了大约一个小时来找到解决这个问题的优雅方案.我的目标基本上是编写带宽控制管道命令,我可以在各种情况下重复使用(不仅仅是网络传输,我知道scp -l 1234).我想做的是&#xff1a;>延迟X秒.>从管道读取Y量(或者如果没有足够的话,小于Y).>将读取数据写入标…

ASP.NET Core 发布至Linux生产环境 Ubuntu 系统

ASP.NET Core 发布至Linux生产环境 Ubuntu 系统&#xff0c;之前跟大家讲解了 dotnet publish 发布&#xff0c;而没有将整个系统串起来。 今天就跟大家综合的讲一下ASP.NET Core发布至Linux生产环境。 开发及发布环境&#xff1a;WIN10 x64 生产Linux环境&#xff1a;Ubuntu …

Java NIO系列教程(三) Buffer

转载自 Java NIO系列教程&#xff08;三&#xff09; Buffer原文链接 作者&#xff1a;Jakob Jenkov 译者&#xff1a;airu 校对&#xff1a;丁一 Java NIO中的Buffer用于和NIO通道进行交互。如你所知&#xff0c;数据是从通道读入缓冲区&#xff0c;从缓冲区写入…

Linux程序之触摸,linux 触摸屏驱动编写

早在诺基亚手机还比较流行的时候&#xff0c;那时候触摸屏用的还不多。但是随着触摸屏手机、即智能手机的流行&#xff0c;触摸屏基本成了手机的标配。所以&#xff0c;今天可以看看触摸屏驱动在linux上是如何进行的。1、驱动目录drivers/input2、看看这个目录的Makefile如何设…

跨站请求伪造(CSRF/XSRF)

简介 CSRF&#xff08;Cross-site request forgery跨站请求伪造&#xff0c;也被称为“One Click Attack”或者Session Riding&#xff0c;通常缩写为CSRF或者XSRF&#xff0c;是一种对网站的恶意利用。尽管听起来像跨站脚本&#xff08;XSS&#xff09;&#xff0c;但它与XSS非…

Java NIO系列教程(四) Scatter/Gather

转载自 Java NIO系列教程&#xff08;四&#xff09; Scatter/Gather译文地址 作者&#xff1a;Jakob Jenkov 译者&#xff1a;郭蕾 Java NIO开始支持scatter/gather&#xff0c;scatter/gather用于描述从Channel&#xff08;译者注&#xff1a;Channel在中文经常翻译为…

Linux获取本机hostname函数,Linux下获得主机与域名-gethostbyname和gethostbyaddr

1.数据结构hostent和servent:struct hostent{char *h_name;/* official domain name of host */char **h_aliases;/* null-terminated array of domain names */int h_addrtype;/* host address type (AF_INET) */int h_length;/* length of an address, in bytes */char **h_a…

ASP.NET Core Docker部署

前言 在前面文章中&#xff0c;介绍了 ASP.NET Core在 macOS&#xff0c;Linux 上基于Nginx和Jexus的发布和部署&#xff0c;本篇文章主要是如何在Docker容器中运行ASP.NET Core应用程序。 Asp.Net Core 发布和部署&#xff08; MacOS Linux Nginx &#xff09; Asp.Net Core…

Java NIO系列教程(五) 通道之间的数据传输

转载自 Java NIO系列教程&#xff08;五&#xff09; 通道之间的数据传输译文地址 作者&#xff1a;Jakob Jenkov 译者&#xff1a;郭蕾 校对&#xff1a;周泰 在Java NIO中&#xff0c;如果两个通道中有一个是FileChannel&#xff0c;那你可以直接将数据从一个chan…

linux下单点故障的软件,KeepAlived防止单点故障

负载均衡器里面&#xff0c;HAProxy比较出名了&#xff0c;但是如果只用一台HAProxy,则会出现单点故障。这个时候&#xff0c;该KeepAlived出马了。环境介绍OS: Ubuntu 12.04虚拟IP: 192.168.56.2KeepAlived HaProxy : 192.168.56.101 (master)KeepAlived HaProxy : 192.168.…

当当网上书店购物车——JS源码

$(function($){//根据您挑选的商品&#xff0c;当当为您推荐部分的显示和隐藏$("#shopping_commend_arrow").click(function(){if($("#shopping_commend_sort").css("display")"none"){$(this).attr("src","images/sho…

开放重定向(Open Redirection)

简介 那些通过请求&#xff08;如查询字符串和表单数据&#xff09;指定重定向URL的Web程序可能会被篡改&#xff0c;而把用户重定向到外部的恶意URL。这种篡改就被称为开发重定向攻击。 场景分析 假设有一个正规网站http://nerddinner.com/&#xff0c;还有一个恶意网站或钓鱼…

linux ssh密钥对,Mac使用ssh密钥登录Linux

ssh登录Linux通常有两种方法&#xff1a;用户名密码登录、用户名密钥登录&#xff1b;使用用户名密码登录每次都要输入密码&#xff0c;相当麻烦&#xff0c;而使用用户名密钥登录则可以避免这个问题。创建密钥对文件打开本地终端&#xff0c;执行 ssh-keygen 命令创建密钥对&a…