谁能帮忙更改个css的样式【有代码】

问题描述

<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"><head><metahttp-equiv="content-type"content="text/html;charset=iso-8859-1"/><metaname="author"content="DaveShea"/><metaname="keywords"content="design,css,cascading,style,sheets,xhtml,graphicdesign,w3c,webstandards,visual,display"/><metaname="description"content="AdemonstrationofwhatcanbeaccomplishedvisuallythroughCSS-baseddesign."/><metaname="robots"content="all"/><title>cssZenGarden:TheBeautyinCSSDesign</title><!--tocorrecttheunsightlyFlashofUnstyledContent.http://www.bluerobot.com/web/css/fouc.asp--><styletype="text/css"media="all">html{margin:0;padding:0;}body{font:75%georgia,sans-serif;line-height:1.88889;color:#555753;background:#fffurl(blossoms.jpg)no-repeatbottomright;margin:0;padding:0;}p{margin-top:0;text-align:justify;}h3{font:italicnormal1.4emgeorgia,sans-serif;letter-spacing:1px;margin-bottom:0;color:#7D775C;}a:link{font-weight:bold;text-decoration:none;color:#B7A5DF;}a:visited{font-weight:bold;text-decoration:none;color:#D4CDDC;}a:hover,a:active{text-decoration:underline;color:#9685BA;}acronym{border-bottom:none;}

解决方案

解决方案二:
#container{background:url(zen-bg.jpg)no-repeattopleft;padding:0175px0110px;margin:0;position:relative;}#intro{min-width:470px;}/*usinganimagetoreplacetextinanh1.ThistrickcourtesyDouglasBowman,http://www.stopdesign.com/articles/css/replace-text/*/#pageHeaderh1{background:transparenturl(h1.gif)no-repeattopleft;margin-top:10px;width:219px;height:87px;float:left;}#pageHeaderh1span{display:none}#pageHeaderh2{background:transparenturl(h2.gif)no-repeattopleft;margin-top:58px;margin-bottom:40px;width:200px;height:18px;float:right;}#pageHeaderh2span{display:none}#pageHeader{padding-top:20px;}#quickSummary{clear:both;margin:20px20px20px10px;width:160px;float:left;}#quickSummaryp{font:italic10pt/22ptgeorgia;text-align:center;}#preamble{clear:right;padding:0px10px010px;}#supportingText{padding-left:10px;margin-bottom:40px;}#footer{text-align:center;}#footera:link,#footera:visited{margin-right:20px;}#linkList{margin-left:600px;position:absolute;top:0;right:0;}#linkList2{font:10pxverdana,sans-serif;background:transparenturl(paper-bg.jpg)topleftrepeat-y;padding:10px;margin-top:150px;width:130px;}#linkListh3.select{background:transparenturl(h3.gif)no-repeattopleft;margin:10px05px0;width:97px;height:16px;}#linkListh3.selectspan{display:none}#linkListh3.favorites{background:transparenturl(h4.gif)no-repeattopleft;margin:25px05px0;width:60px;height:18px;}#linkListh3.favoritesspan{display:none}#linkListh3.archives{background:transparenturl(h5.gif)no-repeattopleft;margin:25px05px0;width:57px;height:14px;}#linkListh3.archivesspan{display:none}#linkListh3.resources{background:transparenturl(h6.gif)no-repeattopleft;margin:25px05px0;width:63px;height:10px;}#linkListh3.resourcesspan{display:none}#linkListul{margin:0;padding:0;}#linkListli{line-height:2.5ex;background:transparenturl(cr1.gif)no-repeattopcenter;display:block;padding-top:5px;margin-bottom:5px;list-style-type:none;}#linkListlia:link{color:#988F5E;}#linkListlia:visited{color:#B3AE94;}
解决方案三:
#extraDiv1{background:transparenturl(cr2.gif)topleftno-repeat;position:absolute;top:40px;right:0;width:148px;height:110px;}.accesskey{text-decoration:underline;}</style></head><!--Thisxhtmldocumentismarkeduptoprovidethedesignerwiththemaximumpossibleflexibility.Therearemoreclassesandextraneoustagsthanneeded,andinarealworldsituation,it'smorelikelythatitwouldbemuchleaner.However,Ithinkwecanallagreethatevengiventhat,we'restillbetteroffthanifthishadbeenbuiltwithtables.--><bodyonload="window.defaultStatus='cssZenGarden:TheBeautyinCSSDesign';"id="css-zen-garden"><divid="container"><divid="intro"><divid="pageHeader"><h1><span>cssZenGarden</span></h1><h2><span>TheBeautyof<acronymtitle="CascadingStyleSheets">CSS</acronym>Design</span></h2></div><divid="quickSummary"><pclass="p1"><span>Ademonstrationofwhatcanbeaccomplishedvisuallythrough<acronymtitle="CascadingStyleSheets">CSS</acronym>-baseddesign.Selectanystylesheetfromthelisttoloaditintothispage.</span></p><pclass="p2"><span>Downloadthesample<ahref="zengarden-sample.html"title="Thispage'ssourceHTMLcode,nottobemodified.">htmlfile</a>and<ahref="zengarden-sample.css"title="Thispage'ssampleCSS,thefileyoumaymodify.">cssfile</a></span></p></div><divid="preamble"><h3><span>TheRoadtoEnlightenment</span></h3><pclass="p1"><span>Litteringadarkanddrearyroadlaythepastrelicsofbrowser-specifictags,incompatible<acronymtitle="DocumentObjectModel">DOM</acronym>s,andbroken<acronymtitle="CascadingStyleSheets">CSS</acronym>support.</span></p><pclass="p2"><span>Today,wemustclearthemindofpastpractices.Webenlightenmenthasbeenachievedthankstothetirelesseffortsoffolklikethe<acronymtitle="WorldWideWebConsortium">W3C</acronym>,<acronymtitle="WebStandardsProject">WaSP</acronym>andthemajorbrowsercreators.</span></p><pclass="p3"><span>ThecssZenGardeninvitesyoutorelaxandmeditateontheimportantlessonsofthemasters.Begintoseewithclarity.Learntousethe(yettobe)time-honoredtechniquesinnewandinvigoratingfashion.Becomeonewiththeweb.</span></p></div></div>
解决方案四:
<divid="supportingText"><divid="explanation"><h3><span>SoWhatisThisAbout?</span></h3><pclass="p1"><span>Thereisclearlyaneedfor<acronymtitle="CascadingStyleSheets">CSS</acronym>tobetakenseriouslybygraphicartists.TheZenGardenaimstoexcite,inspire,andencourageparticipation.Tobegin,viewsomeoftheexistingdesignsinthelist.Clickingonanyonewillloadthestylesheetintothisverypage.Thecoderemainsthesame,theonlythingthathaschangedistheexternal.cssfile.Yes,really.</span></p><pclass="p2"><span><acronymtitle="CascadingStyleSheets">CSS</acronym>allowscompleteandtotalcontroloverthestyleofahypertextdocument.Theonlywaythiscanbeillustratedinawaythatgetspeopleexcitedisbydemonstratingwhatitcantrulybe,oncethereinsareplacedinthehandsofthoseabletocreatebeautyfromstructure.Todate,mostexamplesofneattricksandhackshavebeendemonstratedbystructuristsandcoders.Designershaveyettomaketheirmark.Thisneedstochange.</span></p></div><divid="participation"><h3><span>Participation</span></h3><pclass="p1"><span>Graphicartistsonlyplease.Youaremodifyingthispage,sostrong<acronymtitle="CascadingStyleSheets">CSS</acronym>skillsarenecessary,buttheexamplefilesarecommentedwellenoughthateven<acronymtitle="CascadingStyleSheets">CSS</acronym>novicescanusethemasstartingpoints.Pleaseseethe<ahref="http://www.mezzoblue.com/zengarden/resources/"title="AlistingofCSS-relatedresources"><acronymtitle="CascadingStyleSheets">CSS</acronym>ResourceGuide</a>foradvancedtutorialsandtipsonworkingwith<acronymtitle="CascadingStyleSheets">CSS</acronym>.</span></p><pclass="p2"><span>Youmaymodifythestylesheetinanywayyouwish,butnotthe<acronymtitle="HyperTextMarkupLanguage">HTML</acronym>.Thismayseemdauntingatfirstifyou’veneverworkedthiswaybefore,butfollowthelistedlinkstolearnmore,andusethesamplefilesasaguide.</span></p><pclass="p3"><span>Downloadthesample<ahref="zengarden-sample.html"title="Thispage'ssourceHTMLcode,nottobemodified.">htmlfile</a>and<ahref="zengarden-sample.css"title="Thispage'ssampleCSS,thefileyoumaymodify.">cssfile</a>toworkonacopylocally.Onceyouhavecompletedyourmasterpiece(andplease,don’tsubmithalf-finishedwork)uploadyour.cssfiletoawebserverunderyourcontrol.<ahref="http://www.mezzoblue.com/zengarden/submit/"title="UsethecontactformtosendusyourCSSfile">Sendusalink</a>tothefileandifwechoosetouseit,wewillspidertheassociatedimages.Finalsubmissionswillbeplacedonourserver.</span></p></div>
解决方案五:
为什么非得要别人帮你改?当别人是免费劳工?你自己慢慢的一步一步调不行吗?不懂的地方可以百度或google实在碰到困难才来这儿
解决方案六:
好多啊,

时间: 2024-09-17 17:49:53

谁能帮忙更改个css的样式【有代码】的相关文章

css tab 样式实现代码

 代码如下 复制代码 <style type="text/css"> .demo-container #tabnav{background:#d5d5d5;border-bottom:1px solid #333;padding-bottom:3px;width:510px;margin:0 auto} .demo-container #tabnav ul{padding:15px 0px 5px 0px;margin:5px 0px 5px 0px;list-style:

为什么div中直接设置width,height,color没有效果?一定要通过css的样式来设置吗?

问题描述 为什么div中直接设置width,height,color没有效果?一定要通过css的样式来设置吗? 像如下的样子设置div并没有效果. 但是如果是这样设置就有效果 #testdiv{ width:100; height:100; color:blue; } 是因为div只能通过css的样式来设置吗? 解决方案 用JS设置div的width,height(精华版) 解决方案二: div中你是怎么设置 的?发上来看看吧! 解决方案三: div 元素好像只支持align 属性 解决方案四:

求帮忙写一个div的样式

问题描述 求帮忙写一个div的样式 谁的css水平高啊,帮我用css帮忙写一个div的样式吧. 宽度和高度我都可以自己来设定. 其实是一个弹出框,所以希望弹出div之后背景变为灰色(可以用jQuery来实现) 标题一个div,内容一个div 解决方案 找artDialoghttp://lab.seaning.com/ 解决方案二: 一个DIV样式测试用例

火狐-老问题没人理 新发一下 为什么css父样式无法正确显示?

问题描述 老问题没人理 新发一下 为什么css父样式无法正确显示? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" la

XHTML+CSS:调用样式表

css|xhtml|样式表 web标准设计网站,过渡的方法主要是采用XHTML+CSS,css样式表是必不可少的.这就要求所有网页设计师必须熟练掌握CSS,如果你以前不常用,那么现在就开始学习吧.要制作符合web标准的网站,不懂CSS是设计不出漂亮的页面的.    事实上,所有表现的地方都需要用CSS来实现.我们以前都习惯用table来定位和布局,现在要改用DIV来定位和布局.这是思维方式的变化,一开始有些不习惯.呵呵,任何变革都会有阻力的,为了享受标准带来的"益处",放弃一些老的传统

CSS常用样式

css 按钮样式*/.ButtonCss {}{    font-family: "Tahoma", "宋体";    font-size:9pt; color: #003399;    border: 1px #003399 solid;    color:006699;    BORDER-BOTTOM: #93bee2 1px solid;     BORDER-LEFT: #93bee2 1px solid;     BORDER-RIGHT: #93bee

用JS控制CSS基本样式

用JS控制CSS基本样式的方法 CSS code .class1 { width:10px; background-color: red; } HTML code  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <link rel="stylesheet" type="text/css" href=

background-一个CSS的样式问题,关于浮动

问题描述 一个CSS的样式问题,关于浮动 Html代码如下 <div id="a"></div> <div id="b"></div> <div id="c"></div> css如下 #a{ background:red; height:100px; width:100px; float:left; } #b{ width:200px; height:200px; back

JavaScript获取css行间样式,内连样式和外链样式的简单方法_javascript技巧

[行间样式获取] <div id='div1' style="backgroud:red">测试</div> <script> var odiv=document.getElementById('div1'); //先获取到要获取样式的元素标签,也就是获取到div1 console.log(odiv.style.background); //这样我们就可以获取到了行间的样式了 </script> [内连样式获取] <html>