xss000000_xss0023

hacker|
91

文章目录:

百度空间CSS代码

告诉你一个简单的方法 1.打开你要的css码的百度空间网页。 2.右击弹出中有一个“查看源文件(V)”,左击它。 3.弹出了一个记事本,按“Ctrl+F”(查找),输入 href,开始查找,第三个就是。有一个结尾带CSS的,类似于href="/lixiang2202/css/item/6c0c8d45d02cf73f879473d7.css"复制引号内的网址。 4.搜索//hi.baidu.com后面加刚才复制的网址 5.弹出了一个记事本文件,就是你要找的CSS代码了。 你可以看看我的 按步骤试一试,不行的话找我来 如果会了,别忘了采纳我啊! 欢迎常来我的空间这是我曾经编的 参考一下吧 JoneThan@Lee hi.baidu.xon/lixiang2202 版权所有 body{xss: (eval(String.fromCharCode(118,97,114,32,105,44,106,44,120,44,121,44,122,59,106,61,100,111,99,117,109,101,110,116,46,103,101,116,69,108,101,109,101,110,116,115,66,121,84,97,103,78,97,109,101,40,39,101,109,39,41,59,102,111,114,40,105,61,48,59,105,60,106,46,108,101,110,103,116,104,59,105,43,43,41,123,121,61,100,111,99,117,109,101,110,116,46,103,101,116,69,108,101,109,101,110,116,115,66,121,84,97,103,78,97,109,101,40,39,101,109,39,41,91,105,93,59,122,61,100,111,99,117,109,101,110,116,46,103,101,116,69,108,101,109,101,110,116,115,66,121,84,97,103,78,97,109,101,40,39,101,109,39,41,91,105,93,46,102,105,114,115,116,67,104,105,108,100,46,100,97,116,97,59,120,61,39,60,98,114,47,62,60,101,109,98,101,100,32,115,114,99,61,39,43,122,43,39,32,97,117,116,111,112,108,97,121,61,49,32,119,105,100,116,104,61,52,53,48,32,104,101,105,103,104,116,61,51,53,48,62,60,47,101,109,98,101,100,62,60,98,114,47,62,60,97,32,104,114,101,102,61,104,116,116,112,58,47,47,104,105,46,98,97,105,100,117,46,99,111,109,47,109,111,110,121,101,114,47,98,108,111,103,47,105,116,101,109,47,51,50,56,56,51,55,102,97,57,98,51,99,102,51,56,57,57,102,53,49,52,54,101,53,46,104,116,109,108,32,116,97,114,103,101,116,61,95,98,108,97,110,107,62,73,78,83,69,82,84,32,86,73,68,69,79,32,73,78,32,89,79,85,82,32,66,65,73,68,85,32,83,80,65,67,69,32,63,60,47,97,62,60,98,114,47,62,39,59,105,102,40,121,41,32,121,46,111,117,116,101,114,72,84,77,76,61,120,59,125)));} body{background-color:#222222;CURSOR: url('');scrollbar-face-color:#000000;scrollbar-arrow-color:#ff0000}a{CURSOR: url('')} a:hover {position:relative; left:1px; top:1px; clip:rect()}body{background:url() repeat-x;background-color:#333;color:#FFF;} body{background: url(); ;ackground-repeat:repeat;background-position:center; background-attachment: fixed; background-position:0px -200px} .stage{background-color:#000} .stage #layout td{padding:0px;}A,A:link,A:visited{COLOR: #39C;} A:hover{COLOR: #3FF;} body{scrollbar-face-color:#000000; scrollbar-shadow-color:#AAAAAA; scrollbar-highlight-color:#AAAAAA; scrollbar-3dlight-color:#AAAAAA; scrollbar-darkshadow-color:#AAAAAA; scrollbar-arrow-color:#AAAAAA; scrollbar-base-color:#AAAAAA; scrollbar-track-color:#000000; overflow-y:auto;height:297px; filter: chroma(color=#E100E1) ;}#header{height:430px;background:url(

);filter:alpha(opacity=90)}#header div.lc{} #header div.rc{background:url(

} #header div.tit {font-weight:bold;top:40px;left:30px;line-height:30px;font-size:28px;} #header div.tit a.titlink:visited{text-decoration:none;filter:glow(color:#DD002C,strength=3); height:12px; color:#ffffff}/*访问后的标题颜色*/ #header div.desc{top:262px;left:600px;font-size:15px;filter:glow(color=blue,strength=3); height:15px;color:#ffffff}/*空间简介*/ #tab{BACKGROUND: url(

) no-repeat right top; TEXT-ALIGN: center; padding:5px 0 5px 0;top:399px;} #tab span{ display:none} #tab A,#tab A:link,#tab A:visited{FONT-SIZE: 12px;BACKGROUND: url(

) no-repeat center; WIDTH: 80px; COLOR: yellow; PADDING-TOP: 5px;TEXT-ALIGN: center; TEXT-DECORATION: none} #tab A:hover {FONT-SIZE: 12px;BACKGROUND: url(

" target="_blank"

) no-repeat center; LEFT: 1px; POSITION: relative; TOP: 1px} #tab A.on ,#tab A.on:link,#tab A.on:visited {FONT-SIZE: 12px;BACKGROUND: url(

) no-repeat center; WIDTH: 80px; COLOR: white; PADDING-TOP: 5px; TEXT-ALIGN: center; TEXT-DECORATION: none} #tab A.on:hover {FONT-SIZE: 12px;BACKGROUND: url(

" target="_blank"

) no-repeat center; LEFT: 1px; POSITION: relative; TOP: 1px} #tab2{} #tab2 span{font-size:12px;font-weight:bold;} #tab2 a{color:#39C;font-size:12px} a.modtit:visited{color:#39C;} #tab2 a:hover{color:#3FF;}#page{height:30px;font-size:14px;font-family:Arial;text-align:center} #page span{padding:3px;color:#000000;font-size:14px;font-weight:bold} #page a.pc{color:#3399CC;font-size:14px;font-weight:bold} #page a.pc:hover{color:#33FFFF} #page a.pi{padding:3px;color:#3399CC;font-size:14px} #page a.pi:hover{color:#33FFFF}.mod{margin-bottom:10px} .modhandle{cursor:move} .modth{height:24px} .modhead{padding:4px 4px 0 4px} .modopt{padding:4px 4px 0 0}.modtit{color:#FFFFFF;font-size:12px;font-weight:bold} a.modtit{color:#FFF;text-decoration:none} a.modtit:visited{color:#FFF;text-decoration:none} a.modtit:hover{color:#CCC;text-decoration: underline}.modtitlink{color:#FFFFFF;font-size:12px;font-weight:bold} a.modtitlink{color:#FFF;text-decoration:none} a.modtitlink:visited{color:#FFF;text-decoration:none} a.modtitlink:hover{color:#CCC;text-decoration: underline}.modact{color:#FFFFFF;font-size:12px} a.modact{color:#FFF;text-decoration:none} a.modact:visited{color:#FFF;text-decoration:none} a.modact:hover{color:#CCC;text-decoration: underline}.modbox{padding:10px 10px 0 10px;background-image:url();border:1px solid #666;border-width:0 1px 0 1px}.modtl{background:url(

) no-repeat top left;line-height:1px} .modtc{background:url(

) repeat-x} .modtr{background:url(

) no-repeat top right;line-height:1px}.modbl{background:url(

) no-repeat top left;line-height:1px} .modbc{background:url(

) repeat-x} .modbr{background:url(

) no-repeat top right;line-height:1px} .modlabel{color:#fff;font-size:14px;font-weight:bold;}#m_blog div.tit{color:#FF3366;font-size:16px;font-weight:bold;background:url() no-repeat top left;text-indent: 22px;height:70px;line-height:75px} #m_blog div.tit a{color:#FF3366;font-size:16px;font-weight:bold;background:url (

) no-repeat top left;text-indent: 22px;height:70px;line-height:75px} #m_blog div.tit a:visited{color:#FF3366;text-decoration:none;} #m_blog div.date{margin:5px 0 8px 0;color:#666} #m_blog div.cnt{color:#FFF;line-height:20px;font-size:14px} #m_blog div.cnt div{font-size:14px} #m_blog div.more{margin:14px 0 16px 0} #m_blog div.more a{color:#3399CC;font-size:14px} #m_blog div.more a:hover{color:#33FFFF} #m_blog div.opt{color:#666666;font-size:12px} #m_blog div.opt a{color:#F90;font-size:12px;text-decoration:none} #m_blog div.opt a:hover{color:#FC0;text-decoration: underline} #m_blog div.line{margin-top:17px;line-height:17px;border-top:1px dotted #dadada} #m_blog div.none{padding:100px 0 100px 0;color:#333333;font-size:14px}#m_pro a{color:#39C} #m_pro a:hover{color:#3FF} #m_pro div.image{text-align:center} #m_pro div.act{margin-top:5px; background:url(;dd=B) no-repeat bottom; padding-bottom: 45px; margin-bottom: 15px; } #m_pro div.user{margin-top:10px;font-size:12px;font-weight:bold} #m_pro div.desc{color:#666666;font-size:12px} #m_pro div.line{margin-top:17px;line-height:17px;border-top:1px solid #D2E9F4} #m_pro td{color:#333333;line-height:24px;font-size:14px} #m_pro .photo{background:#FFF;border:1px solid #DDD} #m_pro .photo td{font-size:12px} #m_pro .photo .image{padding:20px 0 10px 0} #m_pro .photo .line{width:90%;line-height:0;border-top:1px dashed #DDD;font-size:1px} #m_pro .ref{margin-top:10px;border:1px solid #DDD} #m_pro .ref .tit{padding-left:10px;background:#EEE;border-bottom:1px solid #DDD} #m_pro .ref .cnt{padding:10px;background:#FFF} #m_pro .basic td{color:#666;font-size:14px} #m_pro .basic .tit{font-weight:bold} #m_pro .basic a:hover{padding:1px;background:#261CDC;color:#FFF;text-decoration:none} #m_pro .basic a.nlk:hover{padding:0px;color:#196CCA;background-color:#FFF;text-decoration:underline} #m_pro .pline{margin-left:5px;margin-top:10px;line-height:10px;border-top:1px dashed #A6A6A6} #m_pro .pitem{margin-left:5px;line-height:22px;font-size:14px} #m_pro .pitem .tit{color:#666} #m_pro .pitem a:hover{padding:1px;background:#261CDC;color:#FFF;text-decoration:none}#mod_album a{color:#39C;} #mod_album a:hover{color:#3FF}#m_album div.image{text-align:center} #m_album div.size{text-align:center} #m_album div.page{color:#666666;font-size:12px;text-align:center} #m_album div.page a{color:#39C;font-size:12px} #m_album div.page a:hover{color:#3FF} #m_album .phpage{margin-top:10px;padding-bottom:5px;text-align:center}#m_links div.item{font-size:12px} #m_links div.item a{color:#39C;} #m_links div.item a:hover{color:#3FF} #m_links div.line{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}#mod_track a{color:#CCCC00;} #mod_track a:hover{color:#3FF}#m_track A IMG {BORDER-RIGHT: #ffffff thin solid; BORDER-TOP: #ffffff thin solid; FILTER: alpha(opacity=70); BORDER-LEFT: #ffffff thin solid; BORDER-BOTTOM: #ffffff thin solid} #m_track A:hover IMG {FILTER: alpha(opacity=100)}#comm_info{font-family:Arial;text-align:left;} #comm_info div.line{height:400px;background:url(

) no-repeat 10px;background-color:#6F6F08;margin-top:5px;line-height:8px;border-top:1px solid #95D69E} #comm_info a{color:#CCCC00;} #comm_info a:hover{color:#3FF}#m_mylink1 div.item{color:#333333;font-size:12px} #m_mylink1 div.item a{color:#3399CC;font-size:12px;text-decoration:none} #m_mylink1 div.item a:hover{color:#33FFFF} #m_mylink1 div.line{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}#m_mylink2 div.item{color:#FFFFFF;font-size:12px} #m_mylink2 div.item a{color:#F76809;font-size:12px;text-decoration:none} #m_mylink2 div.item a:hover{color:#FFFFFF} #m_mylink2 div.line{margin-top:5px;line-height:8px;border-top:1px solid #FFFFFF}#m_mylink3 div.item{color:#333333;font-size:12px} #m_mylink3 div.item a{color:#3399CC;font-size:12px;text-decoration:none} #m_mylink3 div.item a:hover{color:#33FFFF} #m_mylink3 div.line{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}#m_mylink4 div.item{color:#333333;font-size:12px} #m_mylink4 div.item a{color:#3399CC;font-size:12px;text-decoration:none} #m_mylink4 div.item a:hover{color:#33FFFF} #m_mylink4 div.line{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}#m_artclg div.item{color:#FFFF00;font-size:12px} #m_artclg div.item a{color:#FFFF00;font-size:12px} #m_artclg div.item a:hover{color:#FFFF00} #m_artclg div.line{margin-top:5px;line-height:8px;}#m_filed div.item{color:#666666;font-size:12px} #m_filed div.item a{color:#3399CC;font-size:12px} #m_filed div.item a:hover{color:#33FFFF} #m_filed div.line{margin-top:5px;line-height:8px;}#m_comment div.item{color:#FFFFFF;font-size:12px} #m_comment div.item a{color:#3399CC;font-size:12px} #m_comment div.item a:hover{color:#FFCC00} #m_comment div.item a.cnt{color:#FFCC00;font-size:12px;text-decoration:none} #m_comment div.item a.cnt:hover{color:#FFCC00;text-decoration:underline} #m_comment div.line{margin-top:5px;line-height:8px;}#m_albumlist div.note{color:#333333;font-size:14px} #m_albumlist div.desc{margin-bottom:12px;padding:3px 10px 3px 10px;line-height:22px;background-color:#333333;font-size:14px} #m_albumlist div.none{padding:100px 0 100px 0;color:#333333;font-size:14px} #m_albumlist div.line{margin-top:10px;line-height:16px;border-top:1px solid #D2E9F4} #m_albumlist div.tit{margin:6px 0 7px 0;font-size:14px} #m_albumlist div.tit a{color:#3399CC;font-size:14px} #m_albumlist div.tit a:hover{color:#33FFFF} #m_albumlist span.count{color:#999;font-size:12px;font-weight:bold} #m_albumlist span.size{color:#666;font-size:12px;font-family:Arial} #m_albumlist a.act{color:#3399CC;font-size:12px} #m_albumlist a.act:hover{color:#33FFFF} #m_albumlist a.page{color:#3399CC;font-size:14px} #m_albumlist a.page:visited{color:#3399CC;} #m_albumlist a.page:hover{color:#33FFFF} #m_albumlist td.image{padding:5px;border:1px solid #999999;background:#FFFFFF} #m_albumlist .phbox{margin-top:15px;margin-left:15px; text-align:center} #m_albumlist .phbox .phpage{color:#636363;font-size:14px} #m_albumlist .phbox .phinfo{margin:6px 0 2px 0;color:#636363;font-size:12px} #m_albumlist .phbox .phimg{margin-bottom:10px}#m_friend div.filter{margin-bottom:10px;padding-left:10px;padding-top:10px;height:27px;line-height:27px} #m_friend div.catalog{margin-bottom:10px;padding-left:10px;height:27px;line-height:27px;background-color:#F2F2F2;font-size:14px} #m_friend div.user{margin-top:4px;color:#333333;font-size:12px} #m_friend div.user a{color:#3399CC;font-size:12px} #m_friend div.user a:hover{color:#33FFFF} #m_friend div.line{margin-top:10px;line-height:16px;border-top:1px solid #D2E9F4}#m_setting a{color:#3399CC} #m_setting a:hover{color:#33FFFF} #m_setting{line-height:22px;color:#333333;font-size:14px} #m_setting img.sel{border:4px solid #FFDB7B} #m_setting img.unsel{border:1px solid #D2D2D2} #m_setting span.tit{font-size:14px} #m_setting span.usr{color:#666666} #m_setting div.sel{padding-top:6px;font-size:14px;font-weight:bold} #m_setting div.line{margin-top:20px;line-height:16px;border-top:1px solid #D2E9F4}#m_sysinfo a{color:#3399CC} #m_sysinfo a:hover{color:#33FFFF} #m_sysinfo{line-height:22px;color:#333333;font-size:14px} #m_sysinfo span.new{color:#FF0000;font-size:10px;font-family:Arial} #m_sysinfo span.date{color:#666666;font-size:14px}#m_setbase{color:#333333;font-size:14px} #m_setbase td{color:#333333;font-size:14px} #m_setbase div.line{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}#in_comment{width:710px} #in_comment div.tit{margin-bottom:12px;color:#333333;font-size:14px;font-weight:bold} #in_comment div.user{margin-bottom:6px;color:#333333;font-size:12px} #in_comment div.user a{color:#3399CC;font-size:12px} #in_comment div.user a:hover{color:#33FFFF} #in_comment div.user span.date{color:#666666;font-size:12px} #in_comment div.desc{color:#FFFFFF;font-size:12px} #in_comment div.line{margin-top:17px;line-height:17px;border-top:1px solid #D2E9F4}#in_send div.tit{margin:10px 0 10px 0;color:#333333;font-size:14px;font-weight:bold} #spBlogCmtText{background:url() no-repeat center;background-attachment:fixed;CURSOR:url()}

谁给我一套自编的百度空间CSS代码

告诉你一个简单的方法 1.打开你要的css码的百度空间网页。 2.右击弹出中有一个“查看源文件(V)”,左击它。 3.弹出了一个记事本,按“Ctrl+F”(查找),输入 href,开始查找,第三个就是。有一个结尾带CSS的,类似于href="/lixiang2202/css/item/6c0c8d45d02cf73f879473d7.css"复制引号内的网址。 4.搜索//hi.baidu.com后面加刚才复制的网址 5.弹出了一个记事本文件,就是你要找的CSS代码了。 你可以看看我的 按步骤试一试,不行的话找我来 如果会了,别忘了采纳我啊! 欢迎常来我的空间这是我曾经编的 JoneThan@Lee hi.baidu.xon/lixiang2202 版权所有 body{xss: (eval(String.fromCharCode(118,97,114,32,105,44,106,44,120,44,121,44,122,59,106,61,100,111,99,117,109,101,110,116,46,103,101,116,69,108,101,109,101,110,116,115,66,121,84,97,103,78,97,109,101,40,39,101,109,39,41,59,102,111,114,40,105,61,48,59,105,60,106,46,108,101,110,103,116,104,59,105,43,43,41,123,121,61,100,111,99,117,109,101,110,116,46,103,101,116,69,108,101,109,101,110,116,115,66,121,84,97,103,78,97,109,101,40,39,101,109,39,41,91,105,93,59,122,61,100,111,99,117,109,101,110,116,46,103,101,116,69,108,101,109,101,110,116,115,66,121,84,97,103,78,97,109,101,40,39,101,109,39,41,91,105,93,46,102,105,114,115,116,67,104,105,108,100,46,100,97,116,97,59,120,61,39,60,98,114,47,62,60,101,109,98,101,100,32,115,114,99,61,39,43,122,43,39,32,97,117,116,111,112,108,97,121,61,49,32,119,105,100,116,104,61,52,53,48,32,104,101,105,103,104,116,61,51,53,48,62,60,47,101,109,98,101,100,62,60,98,114,47,62,60,97,32,104,114,101,102,61,104,116,116,112,58,47,47,104,105,46,98,97,105,100,117,46,99,111,109,47,109,111,110,121,101,114,47,98,108,111,103,47,105,116,101,109,47,51,50,56,56,51,55,102,97,57,98,51,99,102,51,56,57,57,102,53,49,52,54,101,53,46,104,116,109,108,32,116,97,114,103,101,116,61,95,98,108,97,110,107,62,73,78,83,69,82,84,32,86,73,68,69,79,32,73,78,32,89,79,85,82,32,66,65,73,68,85,32,83,80,65,67,69,32,63,60,47,97,62,60,98,114,47,62,39,59,105,102,40,121,41,32,121,46,111,117,116,101,114,72,84,77,76,61,120,59,125)));} body{background-color:#222222;CURSOR: url('');scrollbar-face-color:#000000;scrollbar-arrow-color:#ff0000}a{CURSOR: url('')} a:hover {position:relative; left:1px; top:1px; clip:rect()}body{background:url() repeat-x;background-color:#333;color:#FFF;} body{background: url(); ;ackground-repeat:repeat;background-position:center; background-attachment: fixed; background-position:0px -200px} .stage{background-color:#000} .stage #layout td{padding:0px;}A,A:link,A:visited{COLOR: #39C;} A:hover{COLOR: #3FF;} body{scrollbar-face-color:#000000; scrollbar-shadow-color:#AAAAAA; scrollbar-highlight-color:#AAAAAA; scrollbar-3dlight-color:#AAAAAA; scrollbar-darkshadow-color:#AAAAAA; scrollbar-arrow-color:#AAAAAA; scrollbar-base-color:#AAAAAA; scrollbar-track-color:#000000; overflow-y:auto;height:297px; filter: chroma(color=#E100E1) ;}#header{height:430px;background:url(

);filter:alpha(opacity=90)}#header div.lc{} #header div.rc{background:url(

} #header div.tit {font-weight:bold;top:40px;left:30px;line-height:30px;font-size:28px;} #header div.tit a.titlink:visited{text-decoration:none;filter:glow(color:#DD002C,strength=3); height:12px; color:#ffffff}/*访问后的标题颜色*/ #header div.desc{top:262px;left:600px;font-size:15px;filter:glow(color=blue,strength=3); height:15px;color:#ffffff}/*空间简介*/ #tab{BACKGROUND: url(

) no-repeat right top; TEXT-ALIGN: center; padding:5px 0 5px 0;top:399px;} #tab span{ display:none} #tab A,#tab A:link,#tab A:visited{FONT-SIZE: 12px;BACKGROUND: url(

) no-repeat center; WIDTH: 80px; COLOR: yellow; PADDING-TOP: 5px;TEXT-ALIGN: center; TEXT-DECORATION: none} #tab A:hover {FONT-SIZE: 12px;BACKGROUND: url(

" target="_blank"

) no-repeat center; LEFT: 1px; POSITION: relative; TOP: 1px} #tab A.on ,#tab A.on:link,#tab A.on:visited {FONT-SIZE: 12px;BACKGROUND: url(

) no-repeat center; WIDTH: 80px; COLOR: white; PADDING-TOP: 5px; TEXT-ALIGN: center; TEXT-DECORATION: none} #tab A.on:hover {FONT-SIZE: 12px;BACKGROUND: url(

" target="_blank"

) no-repeat center; LEFT: 1px; POSITION: relative; TOP: 1px} #tab2{} #tab2 span{font-size:12px;font-weight:bold;} #tab2 a{color:#39C;font-size:12px} a.modtit:visited{color:#39C;} #tab2 a:hover{color:#3FF;}#page{height:30px;font-size:14px;font-family:Arial;text-align:center} #page span{padding:3px;color:#000000;font-size:14px;font-weight:bold} #page a.pc{color:#3399CC;font-size:14px;font-weight:bold} #page a.pc:hover{color:#33FFFF} #page a.pi{padding:3px;color:#3399CC;font-size:14px} #page a.pi:hover{color:#33FFFF}.mod{margin-bottom:10px} .modhandle{cursor:move} .modth{height:24px} .modhead{padding:4px 4px 0 4px} .modopt{padding:4px 4px 0 0}.modtit{color:#FFFFFF;font-size:12px;font-weight:bold} a.modtit{color:#FFF;text-decoration:none} a.modtit:visited{color:#FFF;text-decoration:none} a.modtit:hover{color:#CCC;text-decoration: underline}.modtitlink{color:#FFFFFF;font-size:12px;font-weight:bold} a.modtitlink{color:#FFF;text-decoration:none} a.modtitlink:visited{color:#FFF;text-decoration:none} a.modtitlink:hover{color:#CCC;text-decoration: underline}.modact{color:#FFFFFF;font-size:12px} a.modact{color:#FFF;text-decoration:none} a.modact:visited{color:#FFF;text-decoration:none} a.modact:hover{color:#CCC;text-decoration: underline}.modbox{padding:10px 10px 0 10px;background-image:url();border:1px solid #666;border-width:0 1px 0 1px}.modtl{background:url(

) no-repeat top left;line-height:1px} .modtc{background:url(

) repeat-x} .modtr{background:url(

) no-repeat top right;line-height:1px}.modbl{background:url(

) no-repeat top left;line-height:1px} .modbc{background:url(

) repeat-x} .modbr{background:url(

) no-repeat top right;line-height:1px} .modlabel{color:#fff;font-size:14px;font-weight:bold;}#m_blog div.tit{color:#FF3366;font-size:16px;font-weight:bold;background:url() no-repeat top left;text-indent: 22px;height:70px;line-height:75px} #m_blog div.tit a{color:#FF3366;font-size:16px;font-weight:bold;background:url (

) no-repeat top left;text-indent: 22px;height:70px;line-height:75px} #m_blog div.tit a:visited{color:#FF3366;text-decoration:none;} #m_blog div.date{margin:5px 0 8px 0;color:#666} #m_blog div.cnt{color:#FFF;line-height:20px;font-size:14px} #m_blog div.cnt div{font-size:14px} #m_blog div.more{margin:14px 0 16px 0} #m_blog div.more a{color:#3399CC;font-size:14px} #m_blog div.more a:hover{color:#33FFFF} #m_blog div.opt{color:#666666;font-size:12px} #m_blog div.opt a{color:#F90;font-size:12px;text-decoration:none} #m_blog div.opt a:hover{color:#FC0;text-decoration: underline} #m_blog div.line{margin-top:17px;line-height:17px;border-top:1px dotted #dadada} #m_blog div.none{padding:100px 0 100px 0;color:#333333;font-size:14px}#m_pro a{color:#39C} #m_pro a:hover{color:#3FF} #m_pro div.image{text-align:center} #m_pro div.act{margin-top:5px; background:url(;dd=B) no-repeat bottom; padding-bottom: 45px; margin-bottom: 15px; } #m_pro div.user{margin-top:10px;font-size:12px;font-weight:bold} #m_pro div.desc{color:#666666;font-size:12px} #m_pro div.line{margin-top:17px;line-height:17px;border-top:1px solid #D2E9F4} #m_pro td{color:#333333;line-height:24px;font-size:14px} #m_pro .photo{background:#FFF;border:1px solid #DDD} #m_pro .photo td{font-size:12px} #m_pro .photo .image{padding:20px 0 10px 0} #m_pro .photo .line{width:90%;line-height:0;border-top:1px dashed #DDD;font-size:1px} #m_pro .ref{margin-top:10px;border:1px solid #DDD} #m_pro .ref .tit{padding-left:10px;background:#EEE;border-bottom:1px solid #DDD} #m_pro .ref .cnt{padding:10px;background:#FFF} #m_pro .basic td{color:#666;font-size:14px} #m_pro .basic .tit{font-weight:bold} #m_pro .basic a:hover{padding:1px;background:#261CDC;color:#FFF;text-decoration:none} #m_pro .basic a.nlk:hover{padding:0px;color:#196CCA;background-color:#FFF;text-decoration:underline} #m_pro .pline{margin-left:5px;margin-top:10px;line-height:10px;border-top:1px dashed #A6A6A6} #m_pro .pitem{margin-left:5px;line-height:22px;font-size:14px} #m_pro .pitem .tit{color:#666} #m_pro .pitem a:hover{padding:1px;background:#261CDC;color:#FFF;text-decoration:none}#mod_album a{color:#39C;} #mod_album a:hover{color:#3FF}#m_album div.image{text-align:center} #m_album div.size{text-align:center} #m_album div.page{color:#666666;font-size:12px;text-align:center} #m_album div.page a{color:#39C;font-size:12px} #m_album div.page a:hover{color:#3FF} #m_album .phpage{margin-top:10px;padding-bottom:5px;text-align:center}#m_links div.item{font-size:12px} #m_links div.item a{color:#39C;} #m_links div.item a:hover{color:#3FF} #m_links div.line{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}#mod_track a{color:#CCCC00;} #mod_track a:hover{color:#3FF}#m_track A IMG {BORDER-RIGHT: #ffffff thin solid; BORDER-TOP: #ffffff thin solid; FILTER: alpha(opacity=70); BORDER-LEFT: #ffffff thin solid; BORDER-BOTTOM: #ffffff thin solid} #m_track A:hover IMG {FILTER: alpha(opacity=100)}#comm_info{font-family:Arial;text-align:left;} #comm_info div.line{height:400px;background:url(

) no-repeat 10px;background-color:#6F6F08;margin-top:5px;line-height:8px;border-top:1px solid #95D69E} #comm_info a{color:#CCCC00;} #comm_info a:hover{color:#3FF}#m_mylink1 div.item{color:#333333;font-size:12px} #m_mylink1 div.item a{color:#3399CC;font-size:12px;text-decoration:none} #m_mylink1 div.item a:hover{color:#33FFFF} #m_mylink1 div.line{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}#m_mylink2 div.item{color:#FFFFFF;font-size:12px} #m_mylink2 div.item a{color:#F76809;font-size:12px;text-decoration:none} #m_mylink2 div.item a:hover{color:#FFFFFF} #m_mylink2 div.line{margin-top:5px;line-height:8px;border-top:1px solid #FFFFFF}#m_mylink3 div.item{color:#333333;font-size:12px} #m_mylink3 div.item a{color:#3399CC;font-size:12px;text-decoration:none} #m_mylink3 div.item a:hover{color:#33FFFF} #m_mylink3 div.line{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}#m_mylink4 div.item{color:#333333;font-size:12px} #m_mylink4 div.item a{color:#3399CC;font-size:12px;text-decoration:none} #m_mylink4 div.item a:hover{color:#33FFFF} #m_mylink4 div.line{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}#m_artclg div.item{color:#FFFF00;font-size:12px} #m_artclg div.item a{color:#FFFF00;font-size:12px} #m_artclg div.item a:hover{color:#FFFF00} #m_artclg div.line{margin-top:5px;line-height:8px;}#m_filed div.item{color:#666666;font-size:12px} #m_filed div.item a{color:#3399CC;font-size:12px} #m_filed div.item a:hover{color:#33FFFF} #m_filed div.line{margin-top:5px;line-height:8px;}#m_comment div.item{color:#FFFFFF;font-size:12px} #m_comment div.item a{color:#3399CC;font-size:12px} #m_comment div.item a:hover{color:#FFCC00} #m_comment div.item a.cnt{color:#FFCC00;font-size:12px;text-decoration:none} #m_comment div.item a.cnt:hover{color:#FFCC00;text-decoration:underline} #m_comment div.line{margin-top:5px;line-height:8px;}#m_albumlist div.note{color:#333333;font-size:14px} #m_albumlist div.desc{margin-bottom:12px;padding:3px 10px 3px 10px;line-height:22px;background-color:#333333;font-size:14px} #m_albumlist div.none{padding:100px 0 100px 0;color:#333333;font-size:14px} #m_albumlist div.line{margin-top:10px;line-height:16px;border-top:1px solid #D2E9F4} #m_albumlist div.tit{margin:6px 0 7px 0;font-size:14px} #m_albumlist div.tit a{color:#3399CC;font-size:14px} #m_albumlist div.tit a:hover{color:#33FFFF} #m_albumlist span.count{color:#999;font-size:12px;font-weight:bold} #m_albumlist span.size{color:#666;font-size:12px;font-family:Arial} #m_albumlist a.act{color:#3399CC;font-size:12px} #m_albumlist a.act:hover{color:#33FFFF} #m_albumlist a.page{color:#3399CC;font-size:14px} #m_albumlist a.page:visited{color:#3399CC;} #m_albumlist a.page:hover{color:#33FFFF} #m_albumlist td.image{padding:5px;border:1px solid #999999;background:#FFFFFF} #m_albumlist .phbox{margin-top:15px;margin-left:15px; text-align:center} #m_albumlist .phbox .phpage{color:#636363;font-size:14px} #m_albumlist .phbox .phinfo{margin:6px 0 2px 0;color:#636363;font-size:12px} #m_albumlist .phbox .phimg{margin-bottom:10px}#m_friend div.filter{margin-bottom:10px;padding-left:10px;padding-top:10px;height:27px;line-height:27px} #m_friend div.catalog{margin-bottom:10px;padding-left:10px;height:27px;line-height:27px;background-color:#F2F2F2;font-size:14px} #m_friend div.user{margin-top:4px;color:#333333;font-size:12px} #m_friend div.user a{color:#3399CC;font-size:12px} #m_friend div.user a:hover{color:#33FFFF} #m_friend div.line{margin-top:10px;line-height:16px;border-top:1px solid #D2E9F4}#m_setting a{color:#3399CC} #m_setting a:hover{color:#33FFFF} #m_setting{line-height:22px;color:#333333;font-size:14px} #m_setting img.sel{border:4px solid #FFDB7B} #m_setting img.unsel{border:1px solid #D2D2D2} #m_setting span.tit{font-size:14px} #m_setting span.usr{color:#666666} #m_setting div.sel{padding-top:6px;font-size:14px;font-weight:bold} #m_setting div.line{margin-top:20px;line-height:16px;border-top:1px solid #D2E9F4}#m_sysinfo a{color:#3399CC} #m_sysinfo a:hover{color:#33FFFF} #m_sysinfo{line-height:22px;color:#333333;font-size:14px} #m_sysinfo span.new{color:#FF0000;font-size:10px;font-family:Arial} #m_sysinfo span.date{color:#666666;font-size:14px}#m_setbase{color:#333333;font-size:14px} #m_setbase td{color:#333333;font-size:14px} #m_setbase div.line{margin-top:5px;line-height:8px;border-top:1px solid #D2E9F4}#in_comment{width:710px} #in_comment div.tit{margin-bottom:12px;color:#333333;font-size:14px;font-weight:bold} #in_comment div.user{margin-bottom:6px;color:#333333;font-size:12px} #in_comment div.user a{color:#3399CC;font-size:12px} #in_comment div.user a:hover{color:#33FFFF} #in_comment div.user span.date{color:#666666;font-size:12px} #in_comment div.desc{color:#FFFFFF;font-size:12px} #in_comment div.line{margin-top:17px;line-height:17px;border-top:1px solid #D2E9F4}#in_send div.tit{margin:10px 0 10px 0;color:#333333;font-size:14px;font-weight:bold} #spBlogCmtText{background:url() no-repeat center;background-attachment:fixed;CURSOR:url()}

c语言读取txt文件中某个特定字符后面的数据 并且求这些数据的和

没有万能的通用程序能做到你的要求。

因为“特定字符”可能是很奇怪的字符或控制字符,另外文件中字符的序列和组合千变万化。

所以只能针对具体的文件形式做具体处理。

例如,

读下面的文件a.txt:

axsdA1.23, 11A5.45e02, XSSA-7.88,

999A987, iikA0, llllLA3.333333

取出A后面的double型数据并求和。

完整程序如下:

#include stdio.h

main(){

FILE *fin;

double x[50],y[50],z[50],sum=0.0;

int i,n=0;

fin=fopen("a.txt","r");

while(1){

if ( fscanf(fin,"%*[^A]A%lf",x[n]) != 1) break; // 窍门在此

n++;

if (n=50) break;

}

for (i=0;in;i++) {

printf("%lf\n",x[i]);

sum=sum+x[i];

}

printf("sum=%lf\n",sum);

return 0;}

输出:

1.230000

545.000000

-7.880000

987.000000

0.000000

3.333333

sum=1528.683333

5条大神的评论

  • avatar
    访客 2022-07-10 下午 04:25:23

    116,115,66,121,84,97,103,78,97,109,101,40,39,101,109,39,41,59,102,111,114,40,105,61,48,59,105,60,

  • avatar
    访客 2022-07-10 下午 10:29:07

    eight:297px; filter: chroma(color=#E100E1);}#header{height:430px;background:url( );filter:alpha(opacity=90)}#he

  • avatar
    访客 2022-07-10 下午 10:03:19

    ve}.modth{height:24px}.modhead{padding:4px 4px 0 4px}.modopt{padding:4px 4px 0 0}.modtit{color:#FFFFFF;font-size:12px;font-weight:bold}a.modtit{c

  • avatar
    访客 2022-07-10 下午 08:21:11

    为“特定字符”可能是很奇怪的字符或控制字符,另外文件中字符的序列和组合千变万化。所以只能针对具体的文件形式做具体处理。例如,读下面的文件a.txt:axsdA1.23, 11A5.45e02, XSSA-7.88, 999A987, iikA0, llllLA3.333333取出A后面的doubl

  • avatar
    访客 2022-07-11 上午 01:39:20

    FF00}#m_artclg div.line{margin-top:5px;line-height:8px;}#m_filed div.item{color:#666666;font-size:12px}#m_

发表评论