我可以更改图像边框的默认颜色吗?

发布于 2024-11-26 21:22:28 字数 151 浏览 3 评论 0原文

我正在开发一个应用程序,它有一个字符串和图像的故事,使用 html 进行格式化以显示在网络视图中。图像是可放大的,当点击网络视图中的该图像时,只是为了显示该图像被点击,在图像周围创建轮廓或边框,然后放大图像。

现在,我想更改表明图像处于点击状态的特定颜色。请提出任何建议。

I am working on app that has a story in a from of string and an image, being formatted using html to show up in a webview. image is enlrageable and when that image in the webview is tapped, just to show that image is tapped, an outline or border is created around the image and then image is enlarged.

now, i want to change that particular color which shows that, image is in tapped state. any suggestions please.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

笨死的猪 2024-12-03 21:22:28

看看这个例子。这是一个很好的提示。 更改 WebView 突出显示颜色

Check out this example. It is a good tip. Change WebView Highlight Color

故事未完 2024-12-03 21:22:28

如果它在 WebView 中 - 使用 HTML 来设置边框样式?否则使用背景可绘制来设置边框。

If it's in a WebView - use HTML to style the border? Otherwise use a background drawable to set a border.

一生独一 2024-12-03 21:22:28
imageView.layer.borderColor=[[UIColor RedColor] CGColor];
imageView.layer.borderColor=[[UIColor RedColor] CGColor];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文