Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement css() at phpQuery #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

coderkk
Copy link

@coderkk coderkk commented Jun 7, 2012

I have implemented a css(), show() and hide() function at phpQueryObject.php

Basically, the syntax call like jQuery.

Example,
$doc = phpQuery::newDocumentHTML("

Content Here
");

// setter using property name
$doc[".styleHere"]->css('background-color', '#003300');

// setter using property namemap
$doc[".styleHere"]->css(array(
"border" => "1px solid #0000",
"border-collapse" => "collapse;"
));

// getter using property name
echo "Border is : " . $doc[".styleHere"]->css('border');

// output result
echo $doc;

Also can hide the element using $doc[".styleHere"]->hide(), and show the element using $doc[".styleHere"]->show()

@mindplay-dk
Copy link

10 months and not even a comment - I beg your pardon, but it's looking like @punkave are no more committed to maintaining this than Tobiasz was...

@applehat
Copy link

10 months? Try almost 3 years now! hah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants