CSS Consolidator

已取消 已发布的 Jul 9, 2012 货到付款
已取消 货到付款

I have a bunch of pages with style in the divs like so:

<div id="mydiv1" style="width: 300px; border-style: solid; " ></div>

Of course things would be better if that was in a separate CSS file:

#mydiv1{

width: 300px;

border-style: solid;

}

and then the original file edited to remove the style from the div tag.

So I am looking for a php file that can do this.

Here are some considerations:

- all css files should be in a "css" folder. The "css" folder is located in the same place as the html file. Name the css file in reference to the html file so [login to view URL] has a [login to view URL] in the "css" folder

- apostrophe and quotation marks are used interchangeably in these files so please account for that

- some of the files are php so please also support tags that are escaped like so:

echo "<div id=\"mydiv1\" style=\"width: 300px; border-style: solid; \" ></div>";

and avoid damaging the rest of the code

-search for style tags regardless of what they are located in ... span, a, and so on

- if the tag has no id give it a generic sequential one like id="style003"

- have the php file that does this work have a string at the top where I can enter file names separated by commas for it to go to work on.

Thats it! Just a clean, working example, please no third party libraries

PHP 软件构架 软件测试 网络主机 网站管理 网站测试

项目ID: #2758070

关于项目

9个方案 远程项目 活跃的Jul 17, 2012

有9名威客正在参与此工作的竞标,均价$16/小时

zydeconinte

See private message.

$15 USD 在3天内
(40条评论)
5.7
chusmanw3

See private message.

$15 USD 在3天内
(9条评论)
4.5
cariva

See private message.

$20.4 USD 在3天内
(7条评论)
4.2
rajatahirsp

See private message.

$15 USD 在3天内
(10条评论)
3.6
sajeesh123

See private message.

$15 USD 在3天内
(6条评论)
3.4
eagleeye2

See private message.

$15 USD 在3天内
(7条评论)
2.4
anaadihsoftechvw

See private message.

$10 USD 在3天内
(8条评论)
2.6
solidstatecvw

See private message.

$21.25 USD 在3天内
(1条评论)
0.0
Songoku105

See private message.

$17 USD 在3天内
(0条评论)
0.0