如何在css中定位锚标记访问状态内的元素?

时间:2017-01-10 06:33:06

标签: html css html5 css3

这是我的插件

http://plnkr.co/edit/BVhFiVYXWQ3AuflEWjCP?p=preview

我想在访问链接后对锚标记内的图像应用边框。

 <a href="">
  <img src="some imageurl" style="height:100px; width:100px;"/>
  <p>Description </p>
 </a>

3 个答案:

答案 0 :(得分:0)

<a href="" style="border:1px solid red;">
<img src="some imageurl" style="height:100px; width:100px;"/>
<p>Description </p>
</a>

答案 1 :(得分:0)

&#13;
&#13;
SWRevealViewcontroller
&#13;
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController *vc = [mainStoryboard instantiateViewControllerWithIdentifier:@"navContStoryboardID"];
[vc setModalPresentationStyle:UIModalPresentationCustom];  // optional
[vc setModalTransitionStyle:UIModalTransitionStyleCrossDissolve];  // optional
[self presentViewController:vc animated:YES completion:nil];
&#13;
&#13;
&#13;

答案 2 :(得分:0)

a:visited img {
    border:3px solid red;
}